Skip to content

Commit 021c6a3

Browse files
authored
ci: Set up node version before building storybook (#783)
Co-authored-by: Henning Muszynski <henningmu@users.noreply.github.com>
1 parent 39b4b37 commit 021c6a3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy-storybook.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v3
3030

31+
- name: Read Node.js version from '.nvmrc'
32+
id: nvmrc
33+
run: |
34+
echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v1
38+
with:
39+
node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }}
40+
3141
- name: Install dependencies
3242
run: npm ci
3343

0 commit comments

Comments
 (0)