Skip to content

Commit dfc64ee

Browse files
committed
Update Github workflows
1 parent d47133c commit dfc64ee

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1-
name: Publish NPM Package
1+
name: Publish package to npm registries
22

33
on:
44
release:
5-
types:
6-
- created
5+
types: [created]
76

87
jobs:
9-
build:
8+
publish_to_npm:
109
runs-on: ubuntu-latest
1110
steps:
1211
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
12+
- uses: actions/setup-node@v3
1413
with:
1514
node-version: '14.x'
1615
registry-url: 'https://registry.npmjs.org'
17-
- run: npm install
16+
- run: npm ci
1817
- run: npm publish
1918
env:
2019
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
21+
publish_to_github:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: '14.x'
28+
registry-url: 'https://npm.pkg.github.com'
29+
scope: '@highmobility'
30+
- run: npm ci
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)