Skip to content

Commit fe22813

Browse files
fix(ci): force-add gitignored DEPENDENCIES.json in release workflow
generated/DEPENDENCIES.json is in .gitignore, so git add refuses to stage it without -f, causing the release job to fail.
1 parent 84e8e38 commit fe22813

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
type: string
1414

1515
concurrency:
16-
group: publish
16+
group: publish-${{ github.event_name }}
1717
cancel-in-progress: true
1818

1919
permissions: {}
@@ -295,7 +295,7 @@ jobs:
295295
if git diff --quiet HEAD -- package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json; then
296296
echo "No version bump commit to push — skipping PR"
297297
else
298-
git add package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json
298+
git add -f package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json
299299
git commit -m "chore: release v${VERSION}"
300300
git push origin "HEAD:refs/heads/${BRANCH}"
301301
gh pr create \

0 commit comments

Comments
 (0)