Skip to content

build(deps): upgrade NPM packages (#982) #97

build(deps): upgrade NPM packages (#982)

build(deps): upgrade NPM packages (#982) #97

Workflow file for this run

name: Build on GitHub Pages
on:
push:
branches: ['main']
workflow_dispatch:
env:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
# - name: Deploy to gh-pages
# uses: peaceiris/actions-gh-pages@v4
# with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './_site'
production-branch: main
production-deploy: false
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: false
enable-commit-status: false
overwrites-pull-request-comment: false
netlify-config-path: './netlify.toml'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 10