Skip to content

Commit df7d250

Browse files
chbgfranky47
andauthored
Update .github/workflows/pkg.pr.new.yml
Implemented a condition for the ‘Publish to pkg.pr.new’ step to execute only if changes were detected in the nuqs package. By adding if: steps.check-for-changes.outputs.skip != 'true', the workflow prevents unnecessary publishing actions when there are no changes, optimizing the deployment process and reducing potential errors. Co-authored-by: François Best <github@francoisbest.com>
1 parent 801832e commit df7d250

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: .github/workflows/pkg.pr.new.yml

+1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ jobs:
3232
run: pnpm pkg set version=0.0.0-preview.${{ github.event.pull_request.head.sha }}
3333
working-directory: packages/nuqs
3434
- name: Publish to pkg.pr.new
35+
- if: steps.check-for-changes.outputs.skip != 'true'
3536
run: pnpx pkg-pr-new publish --compact './packages/nuqs'

0 commit comments

Comments
 (0)