@@ -2,6 +2,11 @@ name: Release
22
33on :
44 push :
5+ # Ignore merge queue branches and all tags
6+ branches-ignore :
7+ - ' gh-readonly-queue/**'
8+ tags-ignore :
9+ - ' **'
510 workflow_dispatch :
611
712concurrency :
5459 publish : npm run release
5560 env :
5661 GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
57- - uses : ./.github/actions/upload-versions
62+
63+ - name : Upload versions json file
64+ uses : primer/.github/.github/actions/upload-versions@v2.4.0
5865
5966 release-candidate :
6067 if : github.ref_name == 'changeset-release/main'
@@ -94,21 +101,11 @@ jobs:
94101 env :
95102 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96103
97- - name : Output candidate version
98- uses : actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293
99- with :
100- script : |
101- const package = require(`${process.env.GITHUB_WORKSPACE}/packages/react/package.json`)
102- github.repos.createCommitStatus({
103- owner: context.repo.owner,
104- repo: context.repo.repo,
105- sha: context.sha,
106- state: 'success',
107- context: `Published ${package.name}`,
108- description: package.version,
109- target_url: `https://unpkg.com/${package.name}@${package.version}/`
110- })
111- - uses : ./.github/actions/upload-versions
104+ - name : Report versions
105+ uses : primer/.github/.github/actions/report-versions@v2.4.0
106+
107+ - name : Upload versions json file
108+ uses : primer/.github/.github/actions/upload-versions@v2.4.0
112109
113110 release-canary :
114111 name : Canary
@@ -140,18 +137,9 @@ jobs:
140137 npx changeset publish --tag canary
141138 env :
142139 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
143- - name : Output canary version
144- uses : actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293
145- with :
146- script : |
147- const package = require(`${process.env.GITHUB_WORKSPACE}/packages/react/package.json`)
148- github.repos.createCommitStatus({
149- owner: context.repo.owner,
150- repo: context.repo.repo,
151- sha: context.sha,
152- state: 'success',
153- context: `Published ${package.name}`,
154- description: package.version,
155- target_url: `https://unpkg.com/${package.name}@${package.version}/`
156- })
157- - uses : ./.github/actions/upload-versions
140+
141+ - name : Report versions
142+ uses : primer/.github/.github/actions/report-versions@v2.4.0
143+
144+ - name : Upload versions json file
145+ uses : primer/.github/.github/actions/upload-versions@v2.4.0
0 commit comments