Skip to content

Commit ff5996a

Browse files
authored
ci: add checks for release (#18)
* CI Changes
1 parent b3e3803 commit ff5996a

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/pre_release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
ref: ${{ github.ref }}
3838
repo-token: ${{ secrets.GITHUB_TOKEN }}
39-
check-name: 'Lint'
39+
check-regexp: (Build & Test .*|Lint|Docs build)
4040
wait-interval: 5
4141

4242
update_changelog:
@@ -87,11 +87,13 @@ jobs:
8787
uses: actions/setup-node@v4
8888
with:
8989
node-version: 22
90+
cache: 'npm'
91+
cache-dependency-path: 'package-lock.json'
9092
- name: Install dependencies
9193
run: |
9294
echo "access=public" >> .npmrc
9395
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
94-
npm install
96+
npm ci
9597
- # Check version consistency and increment pre-release version number for beta only.
9698
name: Bump pre-release version
9799
run: node ./.github/scripts/before-beta-release.cjs

.github/workflows/release.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,19 @@ jobs:
4343
custom_version: ${{ inputs.custom_version }}
4444
existing_changelog_path: CHANGELOG.md
4545

46+
wait_for_checks:
47+
name: Wait for code checks to pass
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: lewagon/[email protected]
51+
with:
52+
ref: ${{ github.ref }}
53+
repo-token: ${{ secrets.GITHUB_TOKEN }}
54+
check-regexp: (Build & Test .*|Lint|Docs build)
55+
wait-interval: 5
56+
4657
update_changelog:
47-
needs: [ release_metadata ]
58+
needs: [ release_metadata, wait_for_checks ]
4859
name: Update changelog
4960
runs-on: ubuntu-latest
5061
outputs:
@@ -106,6 +117,8 @@ jobs:
106117
uses: actions/setup-node@v4
107118
with:
108119
node-version: 22
120+
cache: 'npm'
121+
cache-dependency-path: 'package-lock.json'
109122
- name: Install dependencies
110123
run: |
111124
echo "access=public" >> .npmrc

0 commit comments

Comments
 (0)