Skip to content

Commit 8619530

Browse files
committed
added workflow to automate npm package publication
1 parent 13162be commit 8619530

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
on:
22
push:
3-
branches: ["main", "npm-latest-publish"]
4-
pull-request:
3+
branches: ["main", "feature/raisa-cicd", "npm-latest-publish"]
4+
pull_request:
55
branches: ["main", "npm-latest-publish"]
66

77
jobs:
88
npmPublish:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Publish npm package when version is updated
12-
uses: actions/checkout@v4
13-
with:
14-
node_version: "20"
12+
uses: JS-DevTools/npm-publish@v3
13+
with:
14+
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/slack-notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Slack Notification of CI Status
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ["main", "feature/raisa-cicd"]
66
pull_request:
77
branches: ["main"]
88

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "rtconnect",
3-
"version": "0.0.54",
2+
"name": "rtc-test-run",
3+
"version": "0.1.6",
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)