Skip to content

Commit 42f4a20

Browse files
committed
GH Actions
1 parent 7bde45e commit 42f4a20

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

.build/update-publish-information.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/npmpublish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,34 @@ jobs:
1515
- run: npm ci
1616
- run: npm test
1717

18-
publish-npm:
18+
publish-pacakges:
1919
needs: build
2020
runs-on: ubuntu-latest
2121
steps:
22+
23+
# checkout the repo
2224
- uses: actions/checkout@v2
25+
26+
# update version
27+
- uses: actions/setup-node@v1
28+
- run: npm version ${{GITHUB_REF}}
29+
- run: npm ci
30+
31+
# publish to NPMJS
2332
- uses: actions/setup-node@v1
2433
with:
2534
node-version: 12
2635
registry-url: https://registry.npmjs.org/
27-
- run: npm ci
2836
- run: npm publish
2937
env:
3038
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3139

32-
publish-gpr:
33-
needs: build
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@v2
40+
# publish to GitHub Pacakge Registry
3741
- uses: actions/setup-node@v1
3842
with:
3943
node-version: 12
4044
registry-url: https://npm.pkg.github.com/
4145
scope: '@validide'
42-
- run: npm ci
4346
- run: npm publish
4447
env:
4548
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)