Skip to content

Commit c6872a5

Browse files
authored
Update npmpublish.yml
1 parent 551f067 commit c6872a5

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/npmpublish.yml

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Node.js Package
1+
name: publish npm
22

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

77
jobs:
88
build:
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
node-version: 12
1515
- run: npm ci
16-
- run: npm test
16+
- run: npm run build
1717

1818
publish-npm:
1919
needs: build
@@ -29,17 +29,4 @@ jobs:
2929
env:
3030
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3131

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: '@h5bp'
42-
- run: npm ci
43-
- run: npm publish
44-
env:
45-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+

0 commit comments

Comments
 (0)