Skip to content

Commit 2b91022

Browse files
authored
Update npmpublish.yml
1 parent 5a924f4 commit 2b91022

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/npmpublish.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Node.js Package
1+
name: NPM publish
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
66

77
jobs:
88
build:
@@ -12,8 +12,7 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 12
15-
- run: npm ci
16-
- run: npm test
15+
- run: yarn install
1716

1817
publish-npm:
1918
needs: build
@@ -24,22 +23,6 @@ jobs:
2423
with:
2524
node-version: 12
2625
registry-url: https://registry.npmjs.org/
27-
- run: npm ci
28-
- run: npm publish
26+
- run: npm publish --access public
2927
env:
3028
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
31-
32-
publish-gpr:
33-
needs: build
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@v1
37-
- uses: actions/setup-node@v1
38-
with:
39-
node-version: 12
40-
registry-url: https://npm.pkg.github.com/
41-
scope: '@Rapsssito'
42-
- run: npm ci
43-
- run: npm publish
44-
env:
45-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)