Skip to content

Upstream CI(Chinese Independent Blogs) #94

Upstream CI(Chinese Independent Blogs)

Upstream CI(Chinese Independent Blogs) #94

Workflow file for this run

name: Upstream CI
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Daily at midnight
jobs:
build:
strategy:
matrix:
node-version: [18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- name: Install dependencies
run: pnpm i --no-optional
- name: Build project
run: |
npm run start