Skip to content

Commit

Permalink
added workflow to automate npm package publication
Browse files Browse the repository at this point in the history
  • Loading branch information
fraisai committed Nov 29, 2023
1 parent 13162be commit 8619530
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
on:
push:
branches: ["main", "npm-latest-publish"]
pull-request:
branches: ["main", "feature/raisa-cicd", "npm-latest-publish"]
pull_request:
branches: ["main", "npm-latest-publish"]

jobs:
npmPublish:
runs-on: ubuntu-latest
steps:
- name: Publish npm package when version is updated
uses: actions/checkout@v4
with:
node_version: "20"
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Slack Notification of CI Status

on:
push:
branches: ["main"]
branches: ["main", "feature/raisa-cicd"]
pull_request:
branches: ["main"]

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rtconnect",
"version": "0.0.54",
"name": "rtc-test-run",
"version": "0.1.6",
"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 8619530

Please sign in to comment.