Skip to content

Commit

Permalink
chore: remove reference to pre.json (#5154)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
joshblack and joshblack authored Oct 21, 2024
1 parent 96ce586 commit 6d8a185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
- name: Publish canary release
run: |
# Remove existing pre.json if one exists. Snapshots are not allowed
# in pre-release mode.
# TODO: remove in v37
rm .changeset/pre.json
echo -e "---\n$( jq .name packages/react/package.json ): patch\n---\n\nFake entry to force publishing" > .changeset/force-snapshot-release.md
npx changeset version --snapshot
npx changeset publish --tag canary
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/release_candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,9 @@ jobs:

- name: Publish release candidate
run: |
# Remove existing pre.json if one exists. Snapshots are not allowed
# in pre-release mode.
# TODO: remove in v37
rm .changeset/pre.json
pkg_json_path=packages/react/package.json
version=$(jq -r .version $pkg_json_path)
# Update how the version is generated in these prereleases. By
# default, -rc. is included in versions when `pre.json` is present.
# Add this back in when we exit the v37 release
# TODO: remove in v37
echo "$( jq ".version = \"$(echo $version).$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
npx changeset publish --tag next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6d8a185

Please sign in to comment.