Skip to content

build: fix package-lock.json #1

build: fix package-lock.json

build: fix package-lock.json #1

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Get last commit message
id: get_commit_message
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './dist'
github-token: ${{ secrets.GITHUB_TOKEN }}
production-branch: main
production-deploy: true
deploy-message: ${{ env.COMMIT_MESSAGE }}
netlify-config-path: ./netlify.toml
env:
# https://app.netlify.com/user/applications
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1