File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed
Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments