@@ -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 }}
0 commit comments