From 817553582700844210fc6485d604e26f6c18de10 Mon Sep 17 00:00:00 2001 From: Adam Jolicoeur Date: Mon, 20 Apr 2026 21:07:08 -0400 Subject: [PATCH] chore: update github actions deployment workflow --- .github/workflows/deploy.yml | 54 +++++++++++++++++++----------------- .gitignore | 1 + figma.config.json | 14 ++++++++++ 3 files changed, 43 insertions(+), 26 deletions(-) create mode 100644 figma.config.json diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5800f49..a6f498f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,38 +1,40 @@ -name: Deploy to GitHub Pages +name: GitHub Pages on: push: - branches: [main] - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: pages - cancel-in-progress: true + branches: + - main + pull_request: jobs: deploy: - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-22.04 + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 + - name: Setup Node - uses: actions/setup-node@v6 + uses: actions/setup-node@v4 with: - node-version: '25' - - name: Install - run: npm ci - - name: Run build - run: npm run build + node-version: '24' + + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - run: npm ci + - run: npm run build + - name: Deploy - uses: peaceiris/actions-gh-pages@v3.9.3 + uses: peaceiris/actions-gh-pages@v4 + if: github.ref == 'refs/heads/main' with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist - publish_branch: gh-pages - commit_message: ${{ github.event.head_commit.message }} diff --git a/.gitignore b/.gitignore index 7cba1a0..8b99d99 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ .superpowers/ .claude/settings.local.json .claude/settings.json +.env diff --git a/figma.config.json b/figma.config.json new file mode 100644 index 0000000..70216fb --- /dev/null +++ b/figma.config.json @@ -0,0 +1,14 @@ +{ + "codeConnect": { + "include": ["src/components/**/*.figma.tsx"], + "exclude": ["node_modules/**"], + "components": { + "Button": { + "props": { + "label": "string", + "variant": "enum" + } + } + } + } +}