Update actions/setup-node digest to 39370e3 (#1910) #3971
This file contains 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: Code Quality | |
on: | |
push: | |
pull_request: | |
jobs: | |
code-quality: | |
timeout-minutes: 60 | |
runs-on: ubuntu-24.04 | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_REMOTE_ONLY: true | |
DIRECTUS_API_KEY: ${{ secrets.DIRECTUS_API_KEY }} | |
PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.PUBLIC_WALLET_CONNECT_PROJECT_ID }} | |
OPEN_SEA_API_KEY: ${{ secrets.OPEN_SEA_API_KEY }} | |
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} | |
NFTSCAN_API_KEY: ${{ secrets.NFTSCAN_API_KEY }} | |
VERCEL_URL: 'empty' | |
PUBLIC_WEB3INBOX_ALL_APPS: false | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
with: | |
fetch-depth: 0 | |
- run: corepack enable | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i | |
- name: Lint | |
run: pnpm lint | |
- name: Test | |
run: pnpm test | |
deploy-workers: | |
needs: code-quality | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
name: Deploy Workers | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
with: | |
fetch-depth: 0 | |
- run: corepack enable | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- name: Deploy @sni/api [PRODUCTION] | |
uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
workingDirectory: './apps/api' | |
packageManager: 'pnpm' | |
environment: 'production' | |
- name: Deploy @sni/api [STAGING] | |
uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
workingDirectory: './apps/api' | |
packageManager: 'pnpm' | |
environment: 'staging' |