Skip to content

chore: Update dependency @vitest/coverage-v8 to v5 #203

chore: Update dependency @vitest/coverage-v8 to v5

chore: Update dependency @vitest/coverage-v8 to v5 #203

Workflow file for this run

name: "Template"
on:
pull_request:
push:
branches:
- "*"
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@v6.1.0
- uses: actions/setup-node@v7.0.0
with:
node-version: 24.21.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck Template
run: pnpm run prepare:template && pnpm run typecheck:template
build:
runs-on: ubuntu-latest
needs: [typecheck]
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@v6.1.0
- uses: actions/setup-node@v7.0.0
with:
node-version: 24.21.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Template
run: pnpm run build:template
deploy:
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
needs: [build]
concurrency:
group: template-deploy
cancel-in-progress: false
env:
NUXT_SHOPIFY_NAME: ${{ secrets.NUXT_SHOPIFY_NAME }}
NUXT_SHOPIFY_CLIENTS_STOREFRONT_API_VERSION: ${{ secrets.NUXT_SHOPIFY_CLIENTS_STOREFRONT_API_VERSION }}
NUXT_SHOPIFY_CLIENTS_STOREFRONT_PUBLIC_ACCESS_TOKEN: ${{ secrets.NUXT_SHOPIFY_CLIENTS_STOREFRONT_PUBLIC_ACCESS_TOKEN }}
NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_API_VERSION: ${{ secrets.NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_API_VERSION }}
NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_CLIENT_ID: ${{ secrets.NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_CLIENT_ID }}
NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_SESSION_PASSWORD: ${{ secrets.NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_SESSION_PASSWORD }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@v6.1.0
- uses: actions/setup-node@v7.0.0
with:
node-version: 24.21.0
cache: pnpm
- name: Install Vercel CLI
run: npm install -g vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Pull Build Environment Variables
run: vercel env pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Template
run: vercel build --prod
- name: Deploy Project to Vercel
run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}