Skip to content

Commit 2cbef18

Browse files
author
parvez3019
committed
Add github actions
1 parent f4186c5 commit 2cbef18

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)