We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 551f067 commit c6872a5Copy full SHA for c6872a5
.github/workflows/npmpublish.yml
@@ -1,8 +1,8 @@
1
-name: Node.js Package
+name: publish npm
2
3
on:
4
release:
5
- types: [created]
+ types: [published]
6
7
jobs:
8
build:
@@ -13,7 +13,7 @@ jobs:
13
with:
14
node-version: 12
15
- run: npm ci
16
- - run: npm test
+ - run: npm run build
17
18
publish-npm:
19
needs: build
@@ -29,17 +29,4 @@ jobs:
29
env:
30
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: '@h5bp'
42
- - run: npm ci
43
- - run: npm publish
44
- env:
45
- NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
+
0 commit comments