Repository navigation
51 lines (48 loc) · 1.49 KB
/
Copy pathrelease.yml
File metadata and controls
51 lines (48 loc) · 1.49 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
name: Release
on:
push:
branches:
- main
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
# A version-PR merge must not be replaced by a later feature merge while waiting to publish.
queue: max
jobs:
release:
name: Changesets release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: '26.13.1'
registry-url: https://registry.npmjs.org
- run: npm install -g npm@11.5.1
- name: Install Corepack
run: npm install --global corepack@0.36.0
- run: corepack yarn install --immutable
- run: corepack yarn tsc:utils
- run: corepack yarn tsc:zod
- run: corepack yarn tsc:node
- name: Skip superseded versioning runs, not publications
id: release_state
run: node scripts/release-run.ts
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d
if: steps.release_state.outputs.proceed == 'true'
with:
version: corepack yarn changeset:version:release
publish: corepack yarn release:publish
commitMode: github-api
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"
TRANSLOADIT_PUBLISH_PREBUILT_NODE: "true"