Skip to content

Commit

Permalink
added workflow to automate npm package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
fraisai committed Nov 29, 2023
1 parent 8619530 commit a90933c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ jobs:
npmPublish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm ci
- name: Publish npm package when version is updated
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
token: ${{ secrets.NPM_TOKEN }}
strategy: upgrade
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rtc-test-run",
"version": "0.1.6",
"name": "rtconnect",
"version": "0.0.55",
"description": "A lightweight React library to set up live streaming and real-time video calls with peers.",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down

0 comments on commit a90933c

Please sign in to comment.