diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cc19748d..78a5073b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,13 +23,16 @@ jobs: uses: actions/setup-node@v7 with: node-version: '18.x' - cache: 'npm' + cache: 'yarn' + + - name: Enable Corepack + run: corepack enable - name: Install dependencies - run: npm ci + run: yarn install --immutable - name: Build frontend - run: npm run build + run: yarn run build env: CI: true @@ -54,16 +57,13 @@ jobs: retention-days: 30 - name: Deploy to Vercel - uses: vercel/action@v5 + uses: vercel/actions/cli@main with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} - vercel-args: '--prod' + args: deploy --prod --token=${{ secrets.VERCEL_TOKEN }} if: | - env.VERCEL_TOKEN != '' && - env.VERCEL_ORG_ID != '' && - env.VERCEL_PROJECT_ID != '' + secrets.VERCEL_TOKEN != '' && + secrets.VERCEL_ORG_ID != '' && + secrets.VERCEL_PROJECT_ID != '' env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} @@ -299,13 +299,16 @@ jobs: uses: actions/setup-node@v7 with: node-version: '18.x' - cache: 'npm' + cache: 'yarn' - name: Enable Corepack run: corepack enable + - name: Install dependencies + run: yarn install --immutable + - name: Install CycloneDX tooling - run: npm install -g @cyclonedx/cyclonedx-npm + run: yarn global add @cyclonedx/cyclonedx-npm - name: Generate frontend SBOM (CycloneDX) run: |