Repository navigation
54 lines (54 loc) · 1.7 KB
/
Copy pathrelease.yaml
File metadata and controls
54 lines (54 loc) · 1.7 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
54
name: Release candidate
on:
push:
branches: [main]
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
version:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
# Changesets uses its own API token; installs do not need a write credential.
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: '26.12.1'
- run: npm install --global corepack@0.36.0 && corepack enable
- run: corepack yarn install --immutable
- id: changesets
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d
with:
version: corepack yarn changeset:version:release
commitMode: github-api
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
candidate:
needs: version
if: needs.version.outputs.hasChangesets == 'false'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: '26.12.1'
- run: npm install --global corepack@0.36.0 && corepack enable
- run: corepack yarn install --immutable
# Changesets writes ~/.netrc. This separate runner keeps its token away from candidate checks.
- run: corepack yarn release:prepare
- uses: actions/upload-artifact@v7
with:
name: bubble-candidate-${{ github.sha }}
path: build/bubble-plugin-*.zip*