Skip to content

Commit 4b1ad6e

Browse files
authored
Update npm-publish.yml
1 parent dc0add2 commit 4b1ad6e

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

.github/workflows/npm-publish.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,19 @@ on:
88
types: [created]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
with:
17-
node-version: 12
18-
- run: npm ci
19-
- run: npm test
20-
2111
publish-npm:
22-
needs: build
2312
runs-on: ubuntu-latest
2413
steps:
2514
- uses: actions/checkout@v2
2615
- uses: actions/setup-node@v2
2716
with:
2817
node-version: 12
2918
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
3119
- run: npm publish
3220
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
21+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3422

3523
publish-gpr:
36-
needs: build
3724
runs-on: ubuntu-latest
3825
permissions:
3926
contents: read
@@ -44,7 +31,6 @@ jobs:
4431
with:
4532
node-version: 12
4633
registry-url: https://npm.pkg.github.com/
47-
- run: npm ci
4834
- run: npm publish
4935
env:
5036
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)