From a2218c00b4737542f281c0999f7e0b6c1e0b2df1 Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:29:17 +0800 Subject: [PATCH] chore(website): fix vercel.json build (#12) #### What this PR does / why we need it: As per title. --- .github/workflows/release.yml | 6 +++--- website/vercel.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75402abf7..5d06c6f2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: name: Release NPM runs-on: ubuntu-latest needs: version - environment: NPM Publishing + environment: NPM Crypto Frontmatter steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 @@ -44,11 +44,11 @@ jobs: - run: pnpm turbo run build - - run: npm config set "//registry.npmjs.org/:_authToken" "\${NPM_AUTH_TOKEN}" --location=global + - run: npm config set "//registry.npmjs.org/:_authToken" "\${CRYPTO_FRONTMATTER_NPM_TOKEN}" --location=global - run: pnpm -r publish --access public --tag latest --no-git-checks env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + CRYPTO_FRONTMATTER_NPM_TOKEN: ${{ secrets.CRYPTO_FRONTMATTER_NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true - run: npm config delete "//registry.npmjs.org/:_authToken" --location=global diff --git a/website/vercel.json b/website/vercel.json index 9bb26c76d..e6a3fcfc1 100644 --- a/website/vercel.json +++ b/website/vercel.json @@ -1,6 +1,6 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "installCommand": "pnpm install", - "buildCommand": "pnpm run build", + "buildCommand": "pnpm turbo run build", "framework": "nextjs" }