-
Notifications
You must be signed in to change notification settings - Fork 6
73 lines (62 loc) · 2.28 KB
/
Copy pathroam-release.yaml
File metadata and controls
73 lines (62 loc) · 2.28 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Update Roam Extension Metadata
on:
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
APP_ID: ${{ secrets.APP_ID }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
SUPABASE_PUBLISHABLE_KEY: ${{ secrets.SUPABASE_PUBLISHABLE_KEY }}
jobs:
update-extension:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 10.15.1
run_install: false
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: "22"
cache: "pnpm"
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: npx turbo run build --filter=roam --ui stream
- name: Get version
id: version
run: echo "version=$(node -p "require('./apps/roam/package.json').version")" >> $GITHUB_OUTPUT
- name: Sync Linear release
uses: linear/linear-release-action@v0
with:
access_key: ${{ secrets.LINEAR_RELEASES_ACCESS_KEY }}
name: Roam ${{ steps.version.outputs.version }}
version: ${{ steps.version.outputs.version }}
include_paths: "apps/roam/**,packages/tailwind-config/**,packages/utils/**,packages/database/**,packages/ui/**"
- name: Inject & upload source maps to PostHog
uses: PostHog/upload-source-maps@v0.5.7.0
with:
directory: apps/roam/dist
env-id: ${{ secrets.POSTHOG_CLI_ENV_ID }}
cli-token: ${{ secrets.POSTHOG_CLI_TOKEN }}
project: Roam
version: ${{ steps.version.outputs.version }}
- name: Update Roam Depot Extension
run: npx turbo run publish --filter=roam --ui stream -- --no-compile
- name: Mark Linear release sent to Roam review
uses: linear/linear-release-action@v0
with:
access_key: ${{ secrets.LINEAR_RELEASES_ACCESS_KEY }}
command: update
version: ${{ steps.version.outputs.version }}
stage: Sent to Roam for Review