Skip to content

Commit 76262e3

Browse files
committed
chore: add github action for publishing
1 parent d8557c8 commit 76262e3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to npmjs
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '18'
16+
registry-url: 'https://registry.npmjs.org'
17+
- uses: pnpm/action-setup@v2
18+
with:
19+
version: 8
20+
- run: pnpm i && pnpm publish --no-git-checks
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)