Skip to content

Commit 9010532

Browse files
committed
Release workflow
1 parent d6d45b0 commit 9010532

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v3
13+
with:
14+
registry-url: 'https://registry.npmjs.org'
15+
node-version: 18
16+
cache: npm
17+
- run: npm ci
18+
- run: npm test
19+
- run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
20+
- run: npm publish --access=public
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)