Skip to content

Commit d60c0ec

Browse files
Merge pull request #90 from Geode-solutions/next
Next
2 parents d818b96 + 95f208a commit d60c0ec

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
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:
22+
- name: Checkout
23+
uses: actions/checkout@v4
1724
- name: Semantic Release
1825
uses: cycjimmy/semantic-release-action@v3
1926
id: semantic

0 commit comments

Comments
 (0)