From 3a7624bb333b29c477f3d7671b44914ffb698617 Mon Sep 17 00:00:00 2001 From: William Wong Date: Fri, 20 Sep 2024 01:26:58 -0700 Subject: [PATCH] Set up environment --- .github/workflows/daily-release.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/daily-release.yaml b/.github/workflows/daily-release.yaml index b77e3e5589..5cefd889ed 100644 --- a/.github/workflows/daily-release.yaml +++ b/.github/workflows/daily-release.yaml @@ -7,6 +7,13 @@ on: schedule: - cron: 00 03 * * * +defaults: + run: + shell: bash + +env: + node-version: 22 + jobs: build: runs-on: ubuntu-latest @@ -15,6 +22,12 @@ jobs: - name: Checking out for ${{ github.ref }} uses: actions/checkout@v4 + - name: Use Node.js ${{ env.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node-version }} + cache: npm + - run: npx version-from-git --no-git-tag-version - run: npm ci --no-production