Skip to content

ci: set cache lock file path #4

ci: set cache lock file path

ci: set cache lock file path #4

Workflow file for this run

name: Build UI
on:
push:
branches: [ master ]
paths:
- 'ui/**'
- '.github/workflows/build-ui.yml'
concurrency:
group: ${{ github.ref }}-ui
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v3
with:
standalone: true
package_json_file: 'ui/package.json'
version: latest
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
cache: 'pnpm'
cache-dependency-path: './ui/pnpm-lock.yaml'
- name: Install dependencies
working-directory: ./ui
run: pnpm install
- name: Build
working-directory: ./ui
run: pnpm build
- name: Release
uses: ncipollo/release-action@v1
with:
artifactErrorsFailBuild: true
allowUpdates: true
artifactContentType: 'text/html'
artifacts: 'ui/dist/index.html'
tag: ui
commit: master