Skip to content

Commit 94899be

Browse files
authored
ENG-1725 Enhance Roam CI/CD workflows with Linear release integration (#1013)
- Updated roam-main.yaml and roam-release.yaml to include steps for syncing and marking Linear releases, utilizing the linear-release-action. - Added a new workflow, roam-release-complete.yaml, to facilitate the completion of Linear releases via manual input of the version. - Set fetch-depth to 0 in checkout steps to ensure full repository history is available for versioning.
1 parent 2a30b12 commit 94899be

3 files changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/roam-main.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout Code
2525
uses: actions/checkout@v6
26+
with:
27+
fetch-depth: 0
2628

2729
- name: Install pnpm
2830
uses: pnpm/action-setup@v4
@@ -53,3 +55,15 @@ jobs:
5355

5456
- name: Deploy
5557
run: npx turbo run deploy --filter=roam --ui stream -- --no-compile
58+
59+
- name: Get version
60+
id: version
61+
run: echo "version=$(node -p "require('./apps/roam/package.json').version")" >> $GITHUB_OUTPUT
62+
63+
- name: Sync Linear release
64+
uses: linear/linear-release-action@v0
65+
with:
66+
access_key: ${{ secrets.LINEAR_RELEASES_ACCESS_KEY }}
67+
name: Roam ${{ steps.version.outputs.version }}
68+
version: ${{ steps.version.outputs.version }}
69+
include_paths: "apps/roam/**,packages/tailwind-config/**,packages/utils/**,packages/database/**,packages/ui/**"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Complete Roam Linear Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: "Roam release version to complete in Linear, for example 0.18.1."
7+
required: true
8+
type: string
9+
10+
jobs:
11+
complete-release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Complete Linear release
15+
uses: linear/linear-release-action@v0
16+
with:
17+
access_key: ${{ secrets.LINEAR_RELEASES_ACCESS_KEY }}
18+
command: complete
19+
version: ${{ inputs.version }}

.github/workflows/roam-release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout Code
2121
uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 0
2224

2325
- name: Install pnpm
2426
uses: pnpm/action-setup@v4
@@ -42,6 +44,14 @@ jobs:
4244
id: version
4345
run: echo "version=$(node -p "require('./apps/roam/package.json').version")" >> $GITHUB_OUTPUT
4446

47+
- name: Sync Linear release
48+
uses: linear/linear-release-action@v0
49+
with:
50+
access_key: ${{ secrets.LINEAR_RELEASES_ACCESS_KEY }}
51+
name: Roam ${{ steps.version.outputs.version }}
52+
version: ${{ steps.version.outputs.version }}
53+
include_paths: "apps/roam/**,packages/tailwind-config/**,packages/utils/**,packages/database/**,packages/ui/**"
54+
4555
- name: Inject & upload source maps to PostHog
4656
uses: PostHog/upload-source-maps@v0.5.7.0
4757
with:
@@ -53,3 +63,11 @@ jobs:
5363

5464
- name: Update Roam Depot Extension
5565
run: npx turbo run publish --filter=roam --ui stream -- --no-compile
66+
67+
- name: Mark Linear release sent to Roam review
68+
uses: linear/linear-release-action@v0
69+
with:
70+
access_key: ${{ secrets.LINEAR_RELEASES_ACCESS_KEY }}
71+
command: update
72+
version: ${{ steps.version.outputs.version }}
73+
stage: Sent to Roam for Review

0 commit comments

Comments
 (0)