-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,13 +32,13 @@ jobs: | |
git config user.name "Open Terms Archive Release Bot" | ||
git config user.email "[email protected]" | ||
git commit --message="Update changelog" CHANGELOG.md package.json package-lock.json | ||
[ ${{ needs.changelog.outputs.release-type }} != 'no-release' ] && git tag v${{ steps.update-changelog.outputs.version }} | ||
[ ${{ needs.changelog.outputs.release-type }} != 'no-release' ] && git tag v${{ steps.update-changelog.outputs.version }}-changelog-action-test | ||
- name: Run status checks for release commit on temporary branch # Use temporary branch to enable pushing commits to this branch protected by required status checks | ||
uses: CasperWA/push-protected@v2 | ||
with: | ||
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} | ||
branch: main | ||
branch: test-main | ||
tags: true | ||
interval: 10 # seconds between checks | ||
pre_sleep: 15 | ||
|
@@ -49,11 +49,13 @@ jobs: | |
uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
token: ${{ secrets.NPMJS_ACCESS_TOKEN }} | ||
tag: changelog-action-test | ||
dry-run: true | ||
|
||
- name: Create GitHub release | ||
if: needs.changelog.outputs.release-type != 'no-release' | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: v${{ steps.update-changelog.outputs.version }} | ||
tag_name: v${{ steps.update-changelog.outputs.version }}-changelog-action-test | ||
body: ${{ steps.update-changelog.outputs.content }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |