Skip to content

Upgrade dependencies #59

Upgrade dependencies

Upgrade dependencies #59

Workflow file for this run

---
name: Build artifacts
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create configuration files
run: |
echo $NPMRC > .npmrc
echo $ENV_LOCAL > packages/viewer/.env.local
env:
NPMRC: |
node-linker=hoisted
ENV_LOCAL: ${{ vars.ENV_LOCAL }}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Next.js build cache
uses: actions/cache@v3
with:
path: packages/viewer/.next/
key: ${{ runner.os }}-next
- name: Build
run: pnpm -r run build
- name: Upload luogu-discussion-archive
uses: actions/upload-artifact@v3
with:
name: luogu-discussion-archive
path: packages/archive/dist/
retention-days: 1
- name: Upload luogu-discussion-viewer
uses: actions/upload-artifact@v3
with:
name: luogu-discussion-viewer
path: packages/viewer/.next/
retention-days: 1