mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
* ci: replace `yarn-install-action` with `setup-yarn-action` * ci: replace `corepack yarn` command with `yarn` command * ci: setup Yarn to stable version
29 lines
556 B
YAML
29 lines
556 B
YAML
name: Build
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build-package:
|
|
name: Build Package
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Setup Yarn
|
|
uses: threeal/setup-yarn-action@v2.0.0
|
|
with:
|
|
version: stable
|
|
|
|
- name: Build Package
|
|
run: |
|
|
yarn build
|
|
git diff --exit-code HEAD
|