Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove reference to pre.json #5154

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading