Skip to content

Commit 76b6724

Browse files
authored
Merge pull request #55 from oslabs-beta/feature/raisa-cicd
Feature/raisa cicd
2 parents 82c7f7f + 3318552 commit 76b6724

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Automate NPM Package Publish
2+
3+
on:
4+
push:
5+
branches: ["main", "npm-latest-publish"]
6+
pull_request:
7+
branches: ["main", "npm-latest-publish"]
8+
9+
jobs:
10+
npmPublish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: "20"
17+
- run: npm ci
18+
- name: Publish npm package when version is updated
19+
uses: JS-DevTools/npm-publish@v3
20+
with:
21+
token: ${{ secrets.NPM_TOKEN }}
22+
strategy: upgrade
23+
24+
25+
# https://github.com/JS-DevTools/npm-publish

.github/workflows/rtconnect-test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ name: RTConnect CI
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "main"]
99
pull_request:
1010
branches: [ "main" ]
1111

1212
jobs:
13-
build:
14-
15-
runs-on: ubuntu-latest
16-
13+
build_test_lint:
1714
strategy:
1815
fail-fast: false
1916
matrix:
20-
node-version: [15.x, 16.x, 17.x, 18.x]
17+
node-version: [17.x, 18.x, 19.x, 20.x]
18+
os: [windows-latest, ubuntu-latest]
2119
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22-
20+
runs-on: ${{ matrix.os}}
2321
steps:
2422
- uses: actions/checkout@v2
2523
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/slack-notify.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ 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

99
jobs:
1010
slackNotification:
11-
name: Slack CI status message
11+
name: Slack CI status - notify on failure
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Slack Notify on Failure
@@ -21,4 +21,7 @@ jobs:
2121
env:
2222
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2323
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24-
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
24+
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
25+
26+
27+
# https://github.com/slackapi/slack-github-action

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rtconnect",
3-
"version": "0.0.54",
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)