Skip to content

chore: replace bun with yarn as package manager #128

chore: replace bun with yarn as package manager

chore: replace bun with yarn as package manager #128

Workflow file for this run

name: Build and Deploy to Netlify
on: [push, pull_request]
jobs:
build_and_deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Setup NodeJS Runtime
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install
- name: Build the site
run: yarn run build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: public
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1