-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 856 Bytes
/
Copy pathpublish.yml
File metadata and controls
25 lines (25 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '16.x'
#registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
#scope: '@d4ve-r'
#- run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
- run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- run: npm ci
- run: npm run build
#- run: npm publish --registry=npm.pkg.github.com --scope=@d4ve-r
- run: npm publish --registry=registry.npmjs.org