Skip to content

Merge pull request #89 from tyokinuhata/dependabot/npm_and_yarn/expre… #58

Merge pull request #89 from tyokinuhata/dependabot/npm_and_yarn/expre…

Merge pull request #89 from tyokinuhata/dependabot/npm_and_yarn/expre… #58

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 19.7.0
- name: Cache npm directory
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install node modules
run: npm ci
- name: Build app
run: npm run build
- name: Deploy app
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build