Skip to content

Commit 1282856

Browse files
committed
feat: add actions and workflow
1 parent 8761a25 commit 1282856

File tree

5 files changed

+5423
-3
lines changed

5 files changed

+5423
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'npm-publish'
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: '16.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
- name: 'install'
16+
run: npm install
17+
- name: 'create package'
18+
run: npm run package
19+
- name: 'publish'
20+
run: npm publish ./package
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)