Skip to content

Commit 7e8e849

Browse files
committed
fix: lockfile
1 parent e7788ec commit 7e8e849

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/on-push.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,18 @@ jobs:
4343
run: npx nx affected -t build
4444

4545
- name: 🔖 Run nx release
46-
id: release
4746
run: |
4847
git config --global user.email "some@user.dev"
4948
git config --global user.name "YourName"
5049
npx nx release --skip-publish
51-
# Check for changes
52-
if git diff --name-only --exit-code; then
53-
echo "has_changes=false" >> $GITHUB_OUTPUT
54-
else
55-
echo "has_changes=true" >> $GITHUB_OUTPUT
56-
fi
5750
5851
- name: 🔐 Update lock file
59-
if: ${{ steps.release.outputs.has_changes == 'true' }}
52+
id: new_lockfile
53+
run: pnpm install --no-frozen-lockfile
54+
55+
- name: 📤 Commit new lock file
56+
if: ${{ steps.new_lockfile.outputs.has_changes == 'true' }}
6057
run: |
61-
pnpm install --no-frozen-lockfile
6258
git config --local user.name "github-actions"
6359
git config --local user.email "github-actions@github.com"
6460
git add pnpm-lock.yaml

0 commit comments

Comments
 (0)