Skip to content

Commit f758f00

Browse files
Merge pull request #88 from Geode-solutions/fix/CI
Fix/ci
2 parents 19df032 + 91c5e1d commit f758f00

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/CD.yml renamed to .github/workflows/CICD.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
name: Publish Package to npmjs
1+
name: CICD
2+
23
on:
34
push:
4-
branches: [next, master]
55

66
jobs:
7-
build:
7+
test:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
- name: Unit tests
1313
run: |
1414
npm install
1515
npm run test
16-
- uses: actions/checkout@v3
16+
17+
build:
18+
runs-on: ubuntu-latest
19+
needs: test
20+
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
21+
steps:
1722
- name: Semantic Release
1823
uses: cycjimmy/semantic-release-action@v3
1924
id: semantic

0 commit comments

Comments
 (0)