Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit dfb04a4

Browse files
Update the release workflow for modern yarn
1 parent 87f9b77 commit dfb04a4

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,7 @@ jobs:
3030
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
3131
with:
3232
node-version: ${{ env.NODE_VERSION }}
33-
- name: Get yarn cache directory path
34-
run: echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_ENV
35-
- name: Cache yarn
36-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # 4.2.3
37-
id: yarn-cache
38-
with:
39-
path: ${{ env.yarn_cache_dir }}
40-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
41-
restore-keys: |
42-
${{ runner.os }}-yarn-
33+
cache: yarn
4334
- name: Install packages
4435
run: YARN_ENABLE_COLORS=true yarn install
4536
- name: Fetch compiler submodule tags
@@ -64,8 +55,12 @@ jobs:
6455
git config --global user.email "[email protected]"
6556
git config --global user.name "Github Bot"
6657
git add compiler
67-
yarn version --new-version ${{ env.COMPILER_VERSION_NUMBER }}.0.0
58+
yarn version ${{ env.COMPILER_VERSION_NUMBER }}.0.0
59+
git add package.json
60+
./build-scripts/version-packages.js
61+
git commit -m "v${{ env.COMPILER_VERSION_NUMBER }}.0.0"
6862
git push origin master
63+
git tag -a v${{ env.COMPILER_VERSION_NUMBER }}.0.0 -m "v${{ env.COMPILER_VERSION_NUMBER }}.0.0"
6964
git push origin v${{ env.COMPILER_VERSION_NUMBER }}.0.0
7065
- name: Create GitHub Release
7166
if: ${{ env.COMPILER_VERSION_NUMBER != '' }}

0 commit comments

Comments
 (0)