Skip to content

Commit

Permalink
chore: update prerelease.yml (#11721)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Mar 22, 2024
1 parent 71969bc commit cccb1b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/change-prerelease-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
npm i
- name: Update prerelease tag in .changeset/pre.json
uses: restackio/update-json-file-action@v2.1
uses: restackio/update-json-file-action@2.1
with:
file: .changeset/pre.json
fields: '{"tag": "${{github.event.inputs.tag}}"}'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ jobs:
# If .changeset/pre.json does not exist and we did not recently exit
# prerelease mode, enter prerelease mode with tag alpha
if: steps.check_files.outputs.files_exists == 'false' && !contains(github.event.head_commit.message, 'Exit prerelease')
run: npx changeset pre enter alpha && git add -A && git commit -m 'Enter prerelease mode' && git push
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
npx changeset pre enter alpha
git add -A
git commit -m 'Enter prerelease mode'
git push
- name: Create prerelease PR
# If .changeset/pre.json exists and we are not currently cutting a
Expand Down

0 comments on commit cccb1b7

Please sign in to comment.