Skip to content

Commit 8be6869

Browse files
authored
chore(workflow): publish to npm on release (#21)
1 parent 0086ae9 commit 8be6869

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2.3.1
10-
- uses: actions/setup-node@v1.4.2
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
1111
with:
1212
node-version: '12.x'
13-
registry-url: 'https://npm.pkg.github.com'
13+
registry-url: 'https://registry.npmjs.org'
1414
- run: npm install
15-
- run: npm publish
15+
- run: npm build
16+
- run: npm publish --access public
1617
env:
17-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)