Files
test-repo/.github/workflows/_build.yml
T
renovate[bot] 53ae3ef479 chore(deps): update github actions (major) (#18131)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 04:42:24 +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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.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@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: dist
path: dist
if-no-files-found: error