Skip to content

Commit ea01e4c

Browse files
author
mashal-m
committed
refactor: config semantic release work around
1 parent e38d15f commit ea01e4c

File tree

1 file changed

+38
-31
lines changed

1 file changed

+38
-31
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,56 @@
11
name: Default CI
2+
23
on:
34
push:
45
branches:
5-
- master
6+
- master
67
pull_request:
78
branches:
8-
- '**'
9+
- '**'
10+
911
jobs:
1012
tests:
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
- name: Setup Nodejs Env
18-
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
19-
- name: Setup Nodejs
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: ${{ env.NODE_VER }}
23-
- name: Install dependencies
24-
run: npm ci
25-
- name: Validate package-lock.json changes
26-
run: make validate-no-uncommitted-package-lock-changes
27-
- name: Lint
28-
run: npm run lint
29-
- name: Test
30-
run: npm run test
31-
- name: Build
32-
run: npm run build
33-
- name: run semantic release
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Nodejs Env
20+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
21+
- name: Setup Nodejs
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ env.NODE_VER }}
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: Validate package-lock.json changes
28+
run: make validate-no-uncommitted-package-lock-changes
29+
- name: Lint
30+
run: npm run lint
31+
- name: Test
32+
run: npm run test
33+
- name: Build
34+
run: npm run build
35+
- name: i18n_extract
36+
run: npm run i18n_extract
37+
- name: Coverage
38+
uses: codecov/codecov-action@v3
39+
- name: Run semantic release
3440
env:
3541
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3642
run: npx semantic-release
3743
id: ver
38-
outputs:
39-
output1: ${{ steps.ver.outputs.nextVer }}
44+
outputs:
45+
output1: ${{ steps.ver.outputs.nextVer }}
46+
4047
print:
4148
needs: release
4249
runs-on: ubuntu-20.04
4350
steps:
44-
- name: print version
45-
run: echo ${{ needs.release.outputs.output1}}
46-
- name: i18n_extract
47-
run: npm run i18n_extract
48-
- name: Coverage
49-
uses: codecov/codecov-action@v3
51+
- name: Print version
52+
run: echo ${{ needs.release.outputs.output1 }}
53+
- name: i18n_extract
54+
run: npm run i18n_extract
55+
- name: Coverage
56+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)