We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19df032 + 91c5e1d commit f758f00Copy full SHA for f758f00
.github/workflows/CD.yml renamed to .github/workflows/CICD.yml
@@ -1,19 +1,24 @@
1
-name: Publish Package to npmjs
+name: CICD
2
+
3
on:
4
push:
- branches: [next, master]
5
6
jobs:
7
- build:
+ test:
8
runs-on: ubuntu-latest
9
steps:
10
- name: Checkout
11
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
12
- name: Unit tests
13
run: |
14
npm install
15
npm run test
16
- - uses: actions/checkout@v3
17
+ build:
18
+ runs-on: ubuntu-latest
19
+ needs: test
20
+ if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
21
+ steps:
22
- name: Semantic Release
23
uses: cycjimmy/semantic-release-action@v3
24
id: semantic
0 commit comments