We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23aafe6 + 170b622 commit b357d63Copy full SHA for b357d63
1 file changed
.github/workflows/publish.yml
@@ -5,7 +5,8 @@ on:
5
types: [created]
6
7
jobs:
8
- publish:
+
9
+ publish-npm:
10
runs-on: ubuntu-latest
11
steps:
12
- uses: actions/checkout@v2
@@ -22,9 +23,21 @@ jobs:
22
23
- run: npm whoami; npm --ignore-scripts publish
24
env:
25
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26
27
+ publish-gpr:
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - uses: actions/checkout@v2
31
- uses: actions/setup-node@v2
32
with:
33
+ node-version: 14
34
registry-url: https://npm.pkg.github.com/
35
+ - run: npm ci
36
+ - run: npm run build --if-present
37
+ - run: npm test
38
+ - run: npm version ${TAG_NAME} --git-tag-version=false
39
+ env:
40
+ TAG_NAME: ${{ github.event.release.tag_name }}
41
42
43
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
0 commit comments