build(deps-dev): bump rollup from 4.13.2 to 4.22.4 #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup nodejs | |
uses: actions/[email protected] | |
with: | |
node-version: "20" | |
- name: Install deps | |
run: npm i | |
- name: Build app bundle | |
run: npm run build:prod | |
- name: Rename index for routing | |
run: mv dist/peruanos.github.io/browser/index.html dist/peruanos.github.io/browser/404.html | |
# Deploy to Github pages | |
- name: Deploy to Pages | |
uses: crazy-max/[email protected] | |
with: | |
build_dir: dist/peruanos.github.io/browser/ | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |