Skip to content

Commit a90933c

Browse files
committed
added workflow to automate npm package publishing
1 parent 8619530 commit a90933c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ jobs:
88
npmPublish:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: "20"
15+
- run: npm ci
1116
- name: Publish npm package when version is updated
1217
uses: JS-DevTools/npm-publish@v3
1318
with:
14-
token: ${{ secrets.NPM_TOKEN }}
19+
token: ${{ secrets.NPM_TOKEN }}
20+
strategy: upgrade

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "rtc-test-run",
3-
"version": "0.1.6",
2+
"name": "rtconnect",
3+
"version": "0.0.55",
44
"description": "A lightweight React library to set up live streaming and real-time video calls with peers.",
55
"main": "./dist/src/index.js",
66
"types": "./dist/src/index.d.ts",

0 commit comments

Comments
 (0)