Skip to content

Commit

Permalink
Merge pull request #55 from oslabs-beta/feature/raisa-cicd
Browse files Browse the repository at this point in the history
Feature/raisa cicd
  • Loading branch information
fraisai authored Nov 29, 2023
2 parents 82c7f7f + 3318552 commit 76b6724
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automate NPM Package Publish

on:
push:
branches: ["main", "npm-latest-publish"]
pull_request:
branches: ["main", "npm-latest-publish"]

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 }}
strategy: upgrade


# https://github.com/JS-DevTools/npm-publish
12 changes: 5 additions & 7 deletions .github/workflows/rtconnect-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ name: RTConnect CI

on:
push:
branches: [ "main" ]
branches: [ "main"]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

build_test_lint:
strategy:
fail-fast: false
matrix:
node-version: [15.x, 16.x, 17.x, 18.x]
node-version: [17.x, 18.x, 19.x, 20.x]
os: [windows-latest, ubuntu-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

runs-on: ${{ matrix.os}}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Slack Notification of CI Status

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

jobs:
slackNotification:
name: Slack CI status message
name: Slack CI status - notify on failure
runs-on: ubuntu-latest
steps:
- name: Slack Notify on Failure
Expand All @@ -21,4 +21,7 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK


# https://github.com/slackapi/slack-github-action
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rtconnect",
"version": "0.0.54",
"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 76b6724

Please sign in to comment.