chore(deps-dev): bump stylelint from 16.10.0 to 16.11.0 #747
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Production Build | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "src/**/*.*" | |
- "public/**/*.*" | |
- "package.json" | |
- "package-lock.json" | |
- ".github/workflows/**.yml" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "src/**/*.*" | |
- "public/**/*.*" | |
- "package.json" | |
- "package-lock.json" | |
- ".github/workflows/**.yml" | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
NODE_VERSION: "20" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 👷 Checkout Repo | |
uses: actions/checkout@v4 | |
- name: 🏗️ Setup Node.js ${{ env.NODE_VERSION }} environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
check-latest: true | |
cache: npm | |
cache-dependency-path: "**/package-lock.json" | |
- name: ⚡ Cache node_modules | |
uses: actions/cache@v4 | |
id: cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ env.NODE_VERSION }}- | |
- name: 🏗️ Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: 🏗️ Build Site with Vite | |
run: npm run build | |
- name: 📦 Create and upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pwa-artifact | |
path: 'build/' | |
retention-days: 1 | |
call-deploy-workflow: | |
needs: [build] | |
uses: mikesprague/reusable-workflows/.github/workflows/pages-deploy.yml@main | |
secrets: | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN}} | |
with: | |
artifact-name: pwa-artifact | |
call-lighthouse-workflow: | |
needs: [call-deploy-workflow] | |
uses: mikesprague/reusable-workflows/.github/workflows/lighthouse.yml@main | |
secrets: | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN}} | |
with: | |
url: ${{ needs.call-deploy-workflow.outputs.url }} |