Skip to content

Commit 2b440b8

Browse files
committed
chore(github): refactor ci/cd github actions
1 parent 988e2ac commit 2b440b8

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

.github/workflows/dev-build-test.yml renamed to .github/workflows/build-dev.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Dev Test & Build
1+
name: Build - Dev
22

33
on:
44
push:
55
branches: [develop]
66
paths-ignore:
7-
- "**/*.md"
7+
- '**/*.md'
88

99
jobs:
1010
build:
@@ -15,16 +15,16 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919

2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424

25-
- name: Install Packages
25+
- name: Install
2626
if: ${{ always() }}
27-
run: npm i
27+
run: npm install
2828

2929
- name: Lint
3030
if: ${{ always() }}

.github/workflows/stage-build-test.yml renamed to .github/workflows/build-stage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Stage Build
1+
name: Build - Stage
22

33
on:
44
push:
55
branches: [main]
66
paths-ignore:
7-
- "**/*.md"
7+
- '**/*.md'
88

99
jobs:
1010
build:
@@ -15,16 +15,16 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919

2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424

25-
- name: Install Packages
25+
- name: Install
2626
if: ${{ always() }}
27-
run: npm i
27+
run: npm install
2828

2929
- name: Lint
3030
if: ${{ always() }}

.github/workflows/pr-build-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525

2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2929

3030
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v2
31+
uses: actions/setup-node@v3
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434

35-
- name: Install Packages
35+
- name: Install
3636
if: ${{ always() }}
37-
run: npm i
37+
run: npm install
3838

3939
- name: Lint
4040
if: ${{ always() }}

.github/workflows/tag-publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: npm i
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Build
31+
run: npm run build
3132

3233
- name: Publish package
3334
run: npm publish
34-
env:
35-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3635

3736
- name: Slack Notification
3837
uses: rtCamp/action-slack-notify@v2
3938
env:
40-
SLACK_CHANNEL: dev-travis
39+
SLACK_CHANNEL: github-builds
4140
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)