Skip to content

Commit ff41914

Browse files
authored
Merge pull request #5 from ghoshbishakh/add-ci-npm-publish
Add github ci workflow for publishing in npm
2 parents 3433dbe + e318c84 commit ff41914

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Publish NPM Package
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
registry-url: https://registry.npmjs.org/
19+
- run: npm install
20+
- run: npm run build-lib
21+
- run: npm ci
22+
- run: npm publish --access=public
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)