File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments