mirror of
https://github.com/bitwarden/browser
synced 2026-01-20 09:23:23 +00:00
[DEVOPS-1572] Update JS workflows to Node version 18 (#6421)
* Get node version from .nvmrc and use in setup-node action * Fix substitution * Fix substitution 2 * Fix substitution 3 * Add ls * Add ls * Override working directory * Fix override working directory * Fix * Add ls * Checkout repo
This commit is contained in:
11
.github/workflows/chromatic.yml
vendored
11
.github/workflows/chromatic.yml
vendored
@@ -12,10 +12,17 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- name: Get Node Version
|
||||
id: retrieve-node-version
|
||||
run: |
|
||||
NODE_NVMRC=$(cat .nvmrc)
|
||||
NODE_VERSION=${NODE_NVMRC/v/''}
|
||||
echo "node_version=$NODE_VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
||||
with:
|
||||
node-version: "16"
|
||||
node-version: ${{ steps.retrieve-node-version.outputs.node_version }}
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
@@ -31,7 +38,7 @@ jobs:
|
||||
|
||||
- name: Install Node dependencies
|
||||
run: npm ci
|
||||
|
||||
|
||||
# Manual build the storybook to resolve a chromatic/storybook bug related to TurboSnap
|
||||
- name: Build Storybook
|
||||
run: npm run build-storybook:ci
|
||||
|
||||
Reference in New Issue
Block a user