Skip to content

Commit 21a957d

Browse files
authored
Merge pull request #515 from Quramy/modify_workflows
feat(CI): Modify workflows
2 parents 9a7a0f2 + 02a21c2 commit 21a957d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
name: build
22

3-
on: [pull_request, push]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- main
49

510
jobs:
611
build:
712
runs-on: ubuntu-latest
813

914
strategy:
1015
matrix:
11-
node-version: [16.x]
16+
node-version: [18.x]
1217

1318
steps:
1419
- uses: actions/checkout@v3

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: publish
22

3-
on: push
3+
on:
4+
push:
5+
tags:
6+
- "*"
47

58
jobs:
69
publish:
710
runs-on: ubuntu-latest
811

912
strategy:
1013
matrix:
11-
node-version: [16.x]
14+
node-version: [18.x]
1215

1316
steps:
1417
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)