-
-
Notifications
You must be signed in to change notification settings - Fork 29
53 lines (47 loc) · 1.47 KB
/
pr.yml
File metadata and controls
53 lines (47 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: pr
on:
pull_request:
branches:
- master
paths-ignore:
- 'website/**'
concurrency:
group: ${{ github.workflow }}=pr-${{ github.ref }}
cancel-in-progress: true
env:
NODE_OPTIONS: --max-old-space-size=4096
jobs:
dependencies:
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@v1
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
alpha:
if:
${{ github.event.pull_request.head.repo.fork != true && github.event.pull_request.title !=
'Upcoming Release Changes' }}
permissions:
contents: read
id-token: write
pull-requests: write
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@v1
with:
npmTag: alpha
buildScript: build
node-version-file: .node-version
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
release-candidate:
if:
${{ github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.title == 'Upcoming Release Changes' }}
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@v1
with:
npmTag: rc
buildScript: build
node-version-file: .node-version
restoreDeletedChangesets: true
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}