Files
polynote/.gitea/workflows/build.yml
Urko f49c6ada5a
Some checks failed
build / lint (push) Failing after 4s
build / build (push) Has been skipped
ci: install pnpm on both steps
2026-01-29 18:58:49 +00:00

70 lines
1.4 KiB
YAML

name: build
on:
push:
branches:
- main
- feature-*
tags:
- "v*"
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install pnpm
run: npm install -g pnpm@9.12.0
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
build:
name: build
runs-on: ubuntu-latest
needs: [lint]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install pnpm
run: npm install -g pnpm@9.12.0
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Build (skip lint in build)
env:
NEXT_DISABLE_ESLINT: "1"
run: pnpm run build
- name: Upload build artifacts
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: polynote-next-build
path: |
.next/standalone
.next/static
public