Skip to content

Merge pull request #27 from iiroj/changeset-release/main #54

Merge pull request #27 from iiroj/changeset-release/main

Merge pull request #27 from iiroj/changeset-release/main #54

Workflow file for this run

name: Release
on:
push:
tags:
# Semver-like tags "v1.0.0"
- "v[0-9]+.[0-9]+.[0-9]+"
concurrency: production_deployment
jobs:
Shared:
uses: ./.github/workflows/install-lint.yml
Deploy:
needs:
- Shared
runs-on: ubuntu-latest
environment:
name: Production
url: https://iiro.fi
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v3
id: cache-node_modules
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Pull Vercel Environment Information
run: npx vercel pull --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
env:
NEXT_TELEMETRY_DISABLED: "1"
- name: Deploy Project Artifacts to Vercel
run: npx vercel --prod --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }}