Skip to content

[Snyk] Security upgrade next from 12.1.5 to 13.5.0 #27

[Snyk] Security upgrade next from 12.1.5 to 13.5.0

[Snyk] Security upgrade next from 12.1.5 to 13.5.0 #27

Workflow file for this run

# https://github.com/amondnet/vercel-action/blob/master/.github/workflows/example-nextjs.yml
name: deploy website
on:
push:
branches:
- master
pull_request_target:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: build
run: |
npm ci
npx vercel pull --yes --token=${VERCEL_TOKEN}
working-directory: ./
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- run: |
npx vercel build
if: github.event_name == 'pull_request_target'
working-directory: ./
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
- uses: amondnet/vercel-action@v25 #deploy
id: now-deployment-staging
if: github.event_name == 'pull_request_target'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: ${{ secrets.VERCEL_TEAM_SLUG }}
vercel-args: --prebuilt
working-directory: ./
- run: |
npx vercel build --prod
if: github.event_name == 'push'
working-directory: ./
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
- uses: amondnet/vercel-action@v25 #deploy
id: now-deployment-production
if: github.event_name == 'push'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: ${{ secrets.VERCEL_TEAM_SLUG }}
vercel-args: --prod --prebuilt
working-directory: ./