Skip to content

Commit fde700a

Browse files
committed
fix(ci): Fixing semantic release workflow for github
1 parent 4a8eb83 commit fde700a

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: Run CI build script
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
workflow_call:
75
pull_request:
86
types: [ opened, reopened, edited, synchronize ]
97
branches:
108
- master
11-
129
jobs:
1310
quality_control:
1411
name: Execute code quality checks

.github/workflows/release.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ permissions:
99
contents: read
1010

1111
jobs:
12+
ci:
13+
uses: ./.github/workflows/ci.yaml
1214
release:
1315
name: Release
1416
runs-on: ubuntu-latest
1517
permissions:
1618
contents: write
1719
issues: write
1820
pull-requests: write
21+
needs:
22+
- ci
1923

2024
steps:
2125
- name: Checkout
@@ -27,9 +31,9 @@ jobs:
2731
with:
2832
node-version: "lts/*"
2933
- name: Install dependencies
30-
run: npm clean-install
31-
- name: Release
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
run: npx semantic-release
34+
run: npm clean-install
35+
- name: Release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: npx semantic-release
3539

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"branches": [
1313
"master"
1414
],
15+
"tagFormat": "${version}",
1516
"plugins": [
1617
[
1718
"@semantic-release/commit-analyzer",

0 commit comments

Comments
 (0)