Skip to content

Commit

Permalink
Enable corepack in other workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Jun 5, 2024
1 parent 4a57fa9 commit 0acd727
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/deploy_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/deploy_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
workflow_dispatch:

env:
node-version: "22"

permissions:
contents: write

Expand All @@ -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
Expand Down

0 comments on commit 0acd727

Please sign in to comment.