Skip to content

Commit 056e801

Browse files
committed
chore: github action
1 parent 70f7c50 commit 056e801

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "publish package to npm"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/**'
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v2
15+
- name: node
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
registry-url: https://registry.npmjs.org
20+
- name: publish
21+
run: npm publish --access public
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)