Skip to content

chore(nammatham): fix pipeline deploy for pnpm on Azure Static Site #5

chore(nammatham): fix pipeline deploy for pnpm on Azure Static Site

chore(nammatham): fix pipeline deploy for pnpm on Azure Static Site #5

Workflow file for this run

name: Deploy Home Site
on:
push:
branches:
- main
paths:
- 'apps/home/**'
- '.github/workflows/deploy-home.yml'
permissions:
contents: write
env:
pnpm_version: 8
node_version: 20
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: ${{ env.node_version }}
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: ${{ env.pnpm_version }}
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm exec nx run home:build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/apps/home/.next # The folder the action should deploy.