Skip to content

Commit 88458f1

Browse files
author
Fredrik Simonsson
committed
Add release flow
1 parent d265689 commit 88458f1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
- run: npm ci
16+
17+
publish-gpr:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
permissions:
21+
packages: write
22+
contents: read
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 16
28+
registry-url: https://npm.pkg.github.com/
29+
- run: npm ci
30+
- run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
34+

0 commit comments

Comments
 (0)