Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit c3a7838

Browse files
publish gh action
1 parent 7b7030a commit c3a7838

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-npm:
9+
name: "Publish to NPM"
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: "lts/*"
17+
registry-url: https://registry.npmjs.org/
18+
19+
- run: npm install
20+
21+
- run: npm run build
22+
23+
- run: npm publish --access public
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)