Files
test-repo/.github/workflows/_build.yml
T
renovate[bot] f0b49a4fb0 Update GitHub Actions (#19042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-12 18:33:43 +08:00

34 lines
734 B
YAML

name: Build
on:
workflow_call:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Build Package
run: yarn build --clean
- name: Upload Artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist
if-no-files-found: error