File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 41
41
42
42
- name : Publish release candidate
43
43
run : |
44
- pkg_json_path=packages/react/package.json
45
- version=$(jq -r .version $pkg_json_path)
46
- echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
44
+ if [[ -f '.changeset/pre.json' ]]; then
45
+ npx changeset pre exit
46
+ npx changeset version --snapshot
47
+ else
48
+ pkg_json_path=packages/react/package.json
49
+ version=$(jq -r .version $pkg_json_path)
50
+ echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
51
+ fi
52
+
47
53
npx changeset publish --tag next
48
54
env :
49
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
68
description: package.version,
63
69
target_url: `https://unpkg.com/${package.name}@${package.version}/`
64
70
})
65
-
66
- release-candidate-next-major :
67
- if : github.ref_name == 'changeset-release/next-major'
68
- name : Candidate (@next-major)
69
- uses :
primer/.github/.github/workflows/[email protected]
70
- with :
71
- tag : next-major
72
- secrets :
73
- gh_token : ${{ secrets.GITHUB_TOKEN }}
74
- npm_token : ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
You can’t perform that action at this time.
0 commit comments