run install

This commit is contained in:
texm
2023-04-25 15:48:08 +08:00
parent 6759dbd23f
commit 401392d1b1

View File

@@ -19,6 +19,9 @@ concurrency:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@@ -29,11 +32,12 @@ jobs:
node-version: 16 node-version: 16
cache: 'npm' cache: 'npm'
cache-dependency-path: 'web/package-lock.json' cache-dependency-path: 'web/package-lock.json'
- run: npm --prefix web run build - run: npm install
- run: npm run build
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
path: ./web/build path: ./build
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest