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 d818b96 + 95f208a commit d60c0ecCopy full SHA for d60c0ec
.github/workflows/CD.yml renamed to .github/workflows/CICD.yml
@@ -1,19 +1,26 @@
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: Checkout
23
24
- name: Semantic Release
25
uses: cycjimmy/semantic-release-action@v3
26
id: semantic
0 commit comments