Skip to content

Commit 6fdbfe0

Browse files
committed
👷 Add publish workflow
1 parent ccc7c92 commit 6fdbfe0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)