Skip to content

Delete package-lock.json #4694

Delete package-lock.json

Delete package-lock.json #4694

Workflow file for this run

name: Deploy to GitHub Pages from Astro
on:
push:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: '00 * * * *'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout ⏬
uses: actions/checkout@v4
- name: Setup Pages 📝
uses: actions/configure-pages@v5
- name: Setup Node.js environment 💚
uses: actions/setup-node@v4
with:
node-version: latest
- name: Cache deps
uses: actions/cache@v4
with:
path: |
node_modules
~/.npm
key: npm-deps-${{ hashFiles('package-lock.json') }}
restore-keys: npm-deps-
- name: Install deps 🍢
run: |
npm install
npm update
- name: Build Website from Astro 🏭
run: npm run build
- name: Upload artifact ⏫
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages ✍️
uses: actions/deploy-pages@v4