Skip to content

Commit ba69318

Browse files
committed
update github actions
1 parent 633f435 commit ba69318

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,20 @@
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

44
name: Node.js Package
5-
65
on:
76
release:
87
types: [created]
9-
108
jobs:
119
build:
1210
runs-on: ubuntu-latest
1311
steps:
1412
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
13+
# Setup .npmrc file to publish to npm
14+
- uses: actions/setup-node@v2
1615
with:
1716
node-version: 15
18-
- run: npm ci
19-
- run: npm test
20-
21-
publish-npm:
22-
needs: build
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
27-
with:
28-
node-version: 12
29-
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
17+
registry-url: "https://registry.npmjs.org"
18+
- run: npm install
3119
- run: npm publish
3220
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)