Skip to content

Commit be2da20

Browse files
committed
chore: fix gh workflows envs
1 parent 04c214a commit be2da20

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/manual-release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ jobs:
3030
version: 10
3131

3232
- name: Get pnpm store directory
33+
id: pnpm-cache
3334
shell: bash
3435
run: |
3536
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
3637
3738
- uses: actions/cache@v4
3839
name: Setup pnpm cache
3940
with:
40-
path: ${{ env.STORE_PATH }}
41+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
4142
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
4243
restore-keys: |
4344
${{ runner.os }}-pnpm-store-
@@ -54,24 +55,25 @@ jobs:
5455
git config user.email 'github-actions[bot]@users.noreply.github.com'
5556
5657
- name: Changeset Version
58+
id: changeset-version
5759
run: |
5860
pnpm changeset version
5961
NEW_VERSION=$(node -p "require('./packages/react-qr-code/package.json').version")
6062
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
6163
6264
- name: Create Branch and Commit
6365
run: |
64-
git checkout -b release-v${{ env.NEW_VERSION }}
66+
git checkout -b release-v${{ steps.changeset-version.outputs.NEW_VERSION }}
6567
git add .
66-
git commit -m "chore: release v${{ env.NEW_VERSION }}"
67-
git push origin release-v${{ env.NEW_VERSION }}
68+
git commit -m "chore: release v${{ steps.changeset-version.outputs.NEW_VERSION }}"
69+
git push origin release-v${{ steps.changeset-version.outputs.NEW_VERSION }}
6870
6971
- name: Create Pull Request
7072
env:
7173
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7274
run: |
7375
gh pr create \
74-
--title "New release v${{ env.NEW_VERSION }}" \
76+
--title "New release v${{ steps.changeset-version.outputs.NEW_VERSION }}" \
7577
--body "This PR was created by the release workflow to create a new release." \
7678
--base main \
77-
--head release-v${{ env.NEW_VERSION }}
79+
--head release-v${{ steps.changeset-version.outputs.NEW_VERSION }}

.github/workflows/pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
version: 10
2525

2626
- name: Get pnpm store directory
27+
id: store-path
2728
shell: bash
2829
run: |
2930
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
3031
3132
- uses: actions/cache@v4
3233
name: Setup pnpm cache
3334
with:
34-
path: ${{ env.STORE_PATH }}
35+
path: ${{ steps.store-path.outputs.STORE_PATH}}
3536
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3637
restore-keys: |
3738
${{ runner.os }}-pnpm-store-

0 commit comments

Comments
 (0)