@@ -14,28 +14,65 @@ jobs:
1414 githubToken : ${{ secrets.GITHUB_TOKEN }}
1515
1616 alpha :
17- uses : the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
18- if : ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
19- with :
20- npmTag : alpha
21- buildScript : build
22- nodeVersion : 20
23- packageManager : pnpm
24- packageManagerVersion : 9.1.0
25- secrets :
26- githubToken : ${{ secrets.GITHUB_TOKEN }}
27- npmToken : ${{ secrets.NPM_TOKEN }}
17+ runs-on : ubuntu-24.04
18+ if :
19+ ${{ github.event.pull_request.title != 'Upcoming Release Changes' &&
20+ github.event.pull_request.head.repo.full_name == github.repository }}
21+ outputs :
22+ published : ${{ steps.changesets.outputs.published }}
23+ publishedPackages : ${{ steps.changesets.outputs.publishedPackages }}
24+ steps :
25+ - name : checkout
26+ uses : actions/checkout@v4
27+ with :
28+ fetch-depth : 0
29+ ref : ${{ github.event.pull_request.head.sha }}
30+
31+ - uses : the-guild-org/shared-config/setup@main
32+ name : setup env
33+ with :
34+ nodeVersion : ' 20'
35+ packageManager : pnpm
36+ packageManagerVersion : ' 9.1.0'
37+
38+ - name : alpha release
39+ id : changesets
40+ uses :
the-guild-org/[email protected] 41+ with :
42+ tag : alpha
43+ prepareScript : ' pnpm run build'
44+ env :
45+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2847
2948 release-candidate :
30- uses : the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
31- if : ${{ github.event.pull_request.title == 'Upcoming Release Changes' }}
32- with :
33- npmTag : rc
34- buildScript : build
35- nodeVersion : 20
36- packageManager : pnpm
37- packageManagerVersion : 9.1.0
38- restoreDeletedChangesets : true
39- secrets :
40- githubToken : ${{ secrets.GITHUB_TOKEN }}
41- npmToken : ${{ secrets.NPM_TOKEN }}
49+ runs-on : ubuntu-24.04
50+ if :
51+ ${{ github.event.pull_request.title == 'Upcoming Release Changes' &&
52+ github.event.pull_request.head.repo.full_name == github.repository }}
53+ outputs :
54+ published : ${{ steps.changesets.outputs.published }}
55+ publishedPackages : ${{ steps.changesets.outputs.publishedPackages }}
56+ steps :
57+ - name : checkout
58+ uses : actions/checkout@v4
59+ with :
60+ fetch-depth : 0
61+ ref : ${{ github.event.pull_request.head.sha }}
62+
63+ - uses : the-guild-org/shared-config/setup@main
64+ name : setup env
65+ with :
66+ nodeVersion : ' 20'
67+ packageManager : pnpm
68+ packageManagerVersion : ' 9.1.0'
69+
70+ - name : release candidate
71+ id : changesets
72+ uses :
the-guild-org/[email protected] 73+ with :
74+ tag : rc
75+ prepareScript : ' pnpm run build'
76+ env :
77+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
78+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments