Skip to content

Commit 2cba2a4

Browse files
committed
Use OIDC publishing
1 parent f05f72d commit 2cba2a4

3 files changed

Lines changed: 42 additions & 51 deletions

File tree

.github/workflows/pr.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,11 @@ on:
44
branches:
55
- master
66

7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true
10-
11-
permissions:
12-
contents: write
13-
id-token: write
14-
pull-requests: write
15-
167
jobs:
178
dependencies:
189
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
1910
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
20-
secrets:
21-
githubToken: ${{ secrets.GITHUB_TOKEN }}
22-
23-
alpha:
24-
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
25-
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
26-
with:
27-
npmTag: alpha
28-
buildScript: build
29-
packageManager: pnpm
30-
secrets:
31-
githubToken: ${{ secrets.GITHUB_TOKEN }}
32-
npmToken: ${{ secrets.NPM_TOKEN }}
33-
34-
release-candidate:
35-
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
36-
if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }}
37-
with:
38-
npmTag: rc
39-
restoreDeletedChangesets: true
40-
buildScript: build
41-
packageManager: pnpm
11+
permissions:
12+
contents: write # allows modifying changeset files
4213
secrets:
4314
githubToken: ${{ secrets.GITHUB_TOKEN }}
44-
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: release
2+
on:
3+
pull_request: # for snapshot release
4+
branches:
5+
- master
6+
7+
push: # for stable release
8+
branches:
9+
- master
10+
11+
jobs:
12+
release-snapshot:
13+
if: github.event_name == 'pull_request'
14+
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
15+
permissions:
16+
id-token: write # allows ODIC publishing
17+
pull-requests: write # allows creating comment with alpha versions
18+
with:
19+
npmTag: alpha
20+
packageManager: pnpm
21+
buildScript: build
22+
nodeVersion: 24
23+
secrets:
24+
githubToken: ${{ secrets.GITHUB_TOKEN }}
25+
npmToken: FILLER
26+
27+
release-stable:
28+
if: github.event_name == 'push'
29+
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
30+
permissions:
31+
id-token: write # allows ODIC publishing
32+
pull-requests: write # allows creating Version Packages PR
33+
contents: write # allows modifying changeset files
34+
with:
35+
packageManager: pnpm
36+
releaseScript: release
37+
nodeVersion: 24
38+
secrets:
39+
githubToken: ${{ secrets.GITHUB_TOKEN }}
40+
npmToken: FILLER

.github/workflows/release.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)