Skip to content

chore(deps): bundle-analyzerのインストール #51

chore(deps): bundle-analyzerのインストール

chore(deps): bundle-analyzerのインストール #51

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
paths-ignore:
- "**/*.md"
- ".git*"
- ".vscode/**"
jobs:
build:
name: npm run build
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Cache packages
uses: actions/cache@v4
id: cache_npm_packages
env:
cache-name: cache-npm-packages
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install packages
if: ${{ steps.cache_npm_packages.outputs.cache-hit != 'true' }}
run: npm i
- name: Build
run: npm run build
env:
HOST_ORIGIN_URL: ${{ secrets.HOST_ORIGIN_URL }} # 詳細は #22 を参照