Skip to content

Commit 77cc7fd

Browse files
committed
chore: add publish workflow
1 parent dc6ef83 commit 77cc7fd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish on NPM
2+
on:
3+
push:
4+
branches: [ v2-beta ]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 20
14+
- run: npm install
15+
- run: npm test
16+
- uses: JS-DevTools/npm-publish@v3
17+
with:
18+
token: ${{ secrets.NPM_TOKEN }}
19+
tag: next

0 commit comments

Comments
 (0)