Skip to content

Commit

Permalink
fix(github-actions): use node version from .node-version file
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Feb 19, 2023
1 parent edd77ab commit 390fe98
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
- name: Install dependencies
run: yarn
# 👇 Adds Chromatic as a step in the workflow
3 changes: 3 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -12,6 +12,9 @@ jobs:
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
yarn install

0 comments on commit 390fe98

Please sign in to comment.