Skip to content

Commit 571c0d7

Browse files
author
mashal-m
committed
refactor: update ci file
1 parent 026c67c commit 571c0d7

File tree

1 file changed

+50
-35
lines changed

1 file changed

+50
-35
lines changed

.github/workflows/release.yml

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,56 @@
1-
name: Release CI
1+
name: Default CI
2+
23
on:
34
push:
45
branches:
5-
- master
6+
- master
7+
pull_request:
8+
branches:
9+
- '**'
10+
611
jobs:
7-
release:
8-
name: Release
12+
tests:
913
runs-on: ubuntu-latest
1014
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
13-
with:
14-
fetch-depth: 0
15-
- name: Setup Nodejs Env
16-
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
17-
- name: Setup Node.js
18-
uses: actions/setup-node@v3
19-
with:
20-
node-version: ${{ env.NODE_VER }}
21-
- name: Install dependencies
22-
run: npm ci
23-
- name: Validate package-lock.json changes
24-
run: make validate-no-uncommitted-package-lock-changes
25-
- name: Lint
26-
run: npm run lint
27-
- name: Test
28-
run: npm run test
29-
- name: i18n_extract
30-
run: npm run i18n_extract
31-
- name: Coverage
32-
uses: codecov/codecov-action@v3
33-
- name: Build
34-
run: npm run build
35-
- name: Release
36-
uses: cycjimmy/semantic-release-action@v3
37-
with:
38-
semantic_version: 16
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
41-
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
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
40+
id: ver
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: npx semantic-release
44+
outputs:
45+
output1: ${{ steps.ver.outputs.nextVer }}
46+
47+
print:
48+
needs: release
49+
runs-on: ubuntu-20.04
50+
steps:
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)