From c552aac73c7e9f744c11a0220af8450674ed151d Mon Sep 17 00:00:00 2001 From: Brendan F Date: Thu, 9 Jan 2025 00:50:12 -0500 Subject: Use proper naming and structure for a composite action --- .github/actions/build/action.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/actions/build/action.yml (limited to '.github/actions/build') diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml new file mode 100644 index 0000000..fb2e198 --- /dev/null +++ b/.github/actions/build/action.yml @@ -0,0 +1,21 @@ +name: Build Website +runs: + using: "composite" + steps: + - name: Set Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - name: Set up Yarn2 + run: | + corepack enable + yarn set version berry + - name: Run install + uses: borales/actions-yarn@v5 + with: + cmd: install # will run `yarn install` command + - name: Build production bundle + uses: borales/actions-yarn@v5 + with: + cmd: build -- cgit v1.2.3