Skip to content

Commit 506fb0e

Browse files
committed
chore: fix npm publish workflow
Closes: #628 Signed-off-by: Tomás Migone <[email protected]>
1 parent ce64b3c commit 506fb0e

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/npmpublish.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,23 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 12
18-
- run: npm ci
19-
- run: npm test
17+
node-version: 16
18+
- run: yarn install --non-interactive --frozen-lockfile
19+
- run: yarn test
2020

2121
publish-npm:
2222
needs: build
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
26+
- uses: actions/setup-node@v3
2727
with:
28-
node-version: 12
28+
node-version: 16
2929
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
31-
- run: npm publish --access=restricted
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34-
35-
publish-gpr:
36-
needs: build
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-node@v1
41-
with:
42-
node-version: 12
43-
registry-url: https://npm.pkg.github.com/
44-
- run: npm ci
45-
- run: npm publish --access=restricted
30+
- run: yarn install --non-interactive --frozen-lockfile
31+
- run: npm publish --access=public
4632
env:
47-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)