Skip to content

Commit 6765610

Browse files
authored
chore: publish npm (#1)
* chore: publish npm * chore: update action version
1 parent 424abf2 commit 6765610

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: package-publish
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
package-publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: '20.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- name: Install Package
15+
run: yarn
16+
- name: Build
17+
run: yarn clean && yarn build
18+
- name: Publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
run: npm whoami && npm publish --access public

0 commit comments

Comments
 (0)