name: CI / Publish web on: workflow_dispatch: env: NODE_VERSION: 22.x jobs: tests: name: ๐Ÿงช Tests secrets: inherit uses: ./.github/workflows/tests.yml publish: name: ๐Ÿš€ Publish web runs-on: ubuntu-latest environment: Production needs: [tests] env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} steps: - name: โœ… Checkout code uses: actions/checkout@v5 - name: ๐Ÿ”จ Setup uses: ./tooling/github/setup with: node-version: ${{ env.NODE_VERSION }} - name: ๐Ÿ”ผ Install Vercel CLI run: pnpm install --global vercel@latest - name: ๐Ÿ’ช Pull environment information run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - name: ๐Ÿ“ฆ Build run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: ๐Ÿ’จ Publish! run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}