Skip to content

Commit

Permalink
Pass NODE_OPTIONS to storybook directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tf committed Jan 3, 2024
1 parent fa29be1 commit 8f1cc3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ jobs:
- name: Snapshot
uses: percy/[email protected]
env:
NODE_OPTIONS: >-
--openssl-legacy-provider
with:
working-directory: entry_types/scrolled/package
custom-command: yarn run snapshot
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Pageflow assumes the following choice of libraries:
Pageflow runs in environments with:

* Ruby >= 3.2
* Node >= 14
* Node >= 18
* Rails 6.1
* Redis server (for Resque)
* A database server supported by Active Record (tested with MySQL)
Expand Down
6 changes: 3 additions & 3 deletions entry_types/scrolled/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"scripts": {
"test": "jest",
"lint": "eslint .",
"start-storybook": "start-storybook -s .storybook/static",
"build-storybook": "build-storybook -s .storybook/static -o .storybook/out",
"snapshot": "build-storybook --quiet -s .storybook/static -o .storybook/out && PERCY_TOKEN=${PERCY_TOKEN:-$PT} percy-storybook --widths=1280 --build_dir=.storybook/out"
"start-storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -s .storybook/static",
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -s .storybook/static -o .storybook/out",
"snapshot": "NODE_OPTIONS=--openssl-legacy-provider build-storybook --quiet -s .storybook/static -o .storybook/out && PERCY_TOKEN=${PERCY_TOKEN:-$PT} percy-storybook --widths=1280 --build_dir=.storybook/out"
}
}

0 comments on commit 8f1cc3d

Please sign in to comment.