Skip to content

Commit b621dc6

Browse files
authored
Merge pull request #10 from bold-commerce/allow-step-failures
Allow some steps to fail
2 parents d795df8 + 6f9f427 commit b621dc6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,16 @@ jobs:
7171
echo "New release is ${new_version}"
7272
echo "new_version=${new_version}" >> "$GITHUB_OUTPUT"
7373
git pull --rebase
74-
npm version --no-git-tag-version --allow-same-version $new_version
74+
npm version --no-git-tag-version --allow-same-version $new_version || exit 0
7575
7676
- name: Commit the changes
77+
continue-on-error: true
7778
run: |
7879
git config --global user.email 'github-ci@boldcommerce.com'
7980
git config --global user.name 'bold-github-ci'
8081
git add package.json package-lock.json
81-
git commit -m 'Bump version number for release'
82-
git push origin
82+
git commit -m 'Bump version number for release' || exit 0
83+
git push origin || exit 0
8384
8485
- name: Create github release
8586
env:

0 commit comments

Comments
 (0)