Skip to content

Commit

Permalink
update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Sep 5, 2024
1 parent 53a4f3e commit ebd1be5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
node-version: 18
cache: 'yarn'

- name: "Set Yarn to correct version"
run: corepack enable

- name: "Install dependencies 📦"
run: yarn

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'yarn'
# https://github.com/actions/setup-node?tab=readme-ov-file#caching-global-packages-data
- name: Set Yarn to correct version
run: corepack enable
- run: yarn install --immutable
# https://yarnpkg.com/cli/install#options
- run: yarn test
9 changes: 5 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
branches: [ "main" ]

workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -17,11 +17,12 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install and Build 🔧
- name: Install and Build 🔧
run: |
corepack enable
yarn
yarn run storybook:build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: "@conda-store-ui"

- name: "Set Yarn to correct version"
run: corepack enable

- name: "Install dependencies 📦"
run: yarn

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
run: |
cp .env.example .env
- name: "Set Yarn to correct version"
run: corepack enable

- name: "Install Dependencies"
run: |
sudo apt install wait-for-it -y
Expand Down

0 comments on commit ebd1be5

Please sign in to comment.