Skip to content

Merge pull request #505 from Avdan-OS/dependabot/npm_and_yarn/src/rea… #300

Merge pull request #505 from Avdan-OS/dependabot/npm_and_yarn/src/rea…

Merge pull request #505 from Avdan-OS/dependabot/npm_and_yarn/src/rea… #300

Workflow file for this run

name: NPM Dev site Deploy
on:
push:
branches: ["dev"]
paths:
- "src/**"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "src" # Here the path to the folder where package-lock.json is located.
strategy:
matrix:
node-version: [22.x] # Are you are missing this specification?
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "**/package-lock.json" # THIS PATTERN did the trick for me.
- run: npm install && npx next build && touch out/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
folder: src/out
branch: main # The branch the action should deploy to.