Update Roam Extension Metadata #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | |
| jobs: | |
| update-extension: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.15.1 | |
| run_install: false | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| 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: 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 |