Skip to content

Commit 6d8a185

Browse files
authored
chore: remove reference to pre.json (#5154)
Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
1 parent 96ce586 commit 6d8a185

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

.github/workflows/release_canary.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ jobs:
4141
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
4242
- name: Publish canary release
4343
run: |
44-
# Remove existing pre.json if one exists. Snapshots are not allowed
45-
# in pre-release mode.
46-
# TODO: remove in v37
47-
rm .changeset/pre.json
48-
4944
echo -e "---\n$( jq .name packages/react/package.json ): patch\n---\n\nFake entry to force publishing" > .changeset/force-snapshot-release.md
5045
npx changeset version --snapshot
5146
npx changeset publish --tag canary

.github/workflows/release_candidate.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,9 @@ jobs:
4242

4343
- name: Publish release candidate
4444
run: |
45-
# Remove existing pre.json if one exists. Snapshots are not allowed
46-
# in pre-release mode.
47-
# TODO: remove in v37
48-
rm .changeset/pre.json
49-
5045
pkg_json_path=packages/react/package.json
5146
version=$(jq -r .version $pkg_json_path)
52-
53-
# Update how the version is generated in these prereleases. By
54-
# default, -rc. is included in versions when `pre.json` is present.
55-
# Add this back in when we exit the v37 release
56-
# TODO: remove in v37
57-
echo "$( jq ".version = \"$(echo $version).$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
47+
echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
5848
npx changeset publish --tag next
5949
env:
6050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)