diff --git a/.github/workflows/deploy_script.yml b/.github/workflows/deploy_script.yml index 4499633..7d6ea31 100644 --- a/.github/workflows/deploy_script.yml +++ b/.github/workflows/deploy_script.yml @@ -5,16 +5,23 @@ on: branches: [main] workflow_dispatch: +env: + node-version: "22" + jobs: build: runs-on: ubuntu-latest name: Build and Push steps: - - name: git-checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ env.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node-version }} + - run: corepack enable - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --immutable - name: Build script run: yarn workspace greenbox-script run build diff --git a/.github/workflows/deploy_web.yml b/.github/workflows/deploy_web.yml index aee7e7c..d27d29b 100644 --- a/.github/workflows/deploy_web.yml +++ b/.github/workflows/deploy_web.yml @@ -5,6 +5,9 @@ on: branches: [main] workflow_dispatch: +env: + node-version: "22" + permissions: contents: write @@ -13,12 +16,16 @@ jobs: concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ env.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node-version }} + - run: corepack enable - name: Build run: | - yarn install --frozen-lockfile + yarn install --immutable yarn workspace greenbox-web run build - name: Deploy