Skip to content

Commit 363a75e

Browse files
committed
revert gh action
1 parent f61c202 commit 363a75e

File tree

1 file changed

+23
-62
lines changed

1 file changed

+23
-62
lines changed

.github/workflows/pr.yml

Lines changed: 23 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -14,67 +14,28 @@ jobs:
1414
githubToken: ${{ secrets.GITHUB_TOKEN }}
1515

1616
alpha:
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 }}
47-
NPM_CONFIG_PROVENANCE: true
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 }}
4828

4929
release-candidate:
50-
runs-on: ubuntu-24.04
51-
if:
52-
${{ github.event.pull_request.title == 'Upcoming Release Changes' &&
53-
github.event.pull_request.head.repo.full_name == github.repository }}
54-
outputs:
55-
published: ${{ steps.changesets.outputs.published }}
56-
publishedPackages: ${{ steps.changesets.outputs.publishedPackages }}
57-
steps:
58-
- name: checkout
59-
uses: actions/checkout@v4
60-
with:
61-
fetch-depth: 0
62-
ref: ${{ github.event.pull_request.head.sha }}
63-
64-
- uses: the-guild-org/shared-config/setup@main
65-
name: setup env
66-
with:
67-
nodeVersion: '20'
68-
packageManager: pnpm
69-
packageManagerVersion: '9.1.0'
70-
71-
- name: release candidate
72-
id: changesets
73-
uses: the-guild-org/[email protected]
74-
with:
75-
tag: rc
76-
prepareScript: 'pnpm run build'
77-
env:
78-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
79-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80-
NPM_CONFIG_PROVENANCE: true
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 }}

0 commit comments

Comments
 (0)