File tree Expand file tree Collapse file tree 5 files changed +37
-86
lines changed Expand file tree Collapse file tree 5 files changed +37
-86
lines changed Original file line number Diff line number Diff line change 1+ name : Setup
2+ description : Setup Build Step
3+ inputs :
4+ node-version :
5+ required : true
6+ default : ' 18.x'
7+
8+ runs :
9+ using : " composite"
10+ steps :
11+ - uses : pnpm/action-setup@v2
12+ with :
13+ version : 7
14+
15+ - name : Use Node.js
16+ uses : actions/setup-node@v3
17+ with :
18+ node-version : ${{ inputs.node-version }}
19+ cache : ' pnpm'
20+
21+ # Wireit cache
22+ - uses : google/wireit@setup-github-actions-caching/v1
23+
24+ - name : Install dependencies
25+ shell : bash
26+ run : pnpm install
Original file line number Diff line number Diff line change @@ -16,41 +16,16 @@ jobs:
1616 if : github.event.pull_request.draft == false && github.repository == 'FormidableLabs/victory'
1717 runs-on : ubuntu-latest
1818 steps :
19- - uses : actions/checkout@v2
19+ # requires all branches and tags to be fetched for chromatic
20+ - uses : actions/checkout@v4
2021 with :
2122 fetch-depth : 0
2223
23- - name : Use Node.js
24- uses : actions/setup-node@v1
24+ # requires node16, see https://github.com/FormidableLabs/victory/issues/2668
25+ - uses : ./.github/ actions/setup
2526 with :
26- # TODO: Upgrade Node version.
27- # Node18 currently hits `Error: error:0308010C:digital envelope routines::unsupported`
28- # https://github.com/storybookjs/storybook/issues/16555
29- # When we upgrade to webpack5 this should go away.
3027 node-version : 16.x
3128
32- # Wireit cache
33- - uses : google/wireit@setup-github-actions-caching/v1
34-
35- - uses : pnpm/action-setup@v2.2.2
36- with :
37- version : 7
38-
39- - name : Get pnpm store directory
40- id : pnpm-cache
41- run : echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
42-
43- - name : Setup pnpm cache
44- uses : actions/cache@v3
45- with :
46- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
47- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
48- restore-keys : |
49- ${{ runner.os }}-pnpm-store-
50-
51- - name : Install dependencies
52- run : pnpm install
53-
5429 - name : Build Storybook
5530 run : pnpm run storybook:build
5631
Original file line number Diff line number Diff line change @@ -19,37 +19,13 @@ jobs:
1919 DISPLAY : :99.0
2020 strategy :
2121 matrix :
22- node-version : [14.x, 16.x, 18.x]
22+ node-version : [16.x, 18.x]
2323 steps :
24- - uses : actions/checkout@v2
25-
26- - name : Use Node.js ${{ matrix.node-version }}
27- uses : actions/setup-node@v1
24+ - uses : actions/checkout@v4
25+ - uses : ./.github/actions/setup
2826 with :
2927 node-version : ${{ matrix.node-version }}
3028
31- # Wireit cache
32- - uses : google/wireit@setup-github-actions-caching/v1
33-
34- - uses : pnpm/action-setup@v2.2.2
35- with :
36- version : 7
37-
38- - name : Get pnpm store directory
39- id : pnpm-cache
40- run : echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
41-
42- - name : Setup pnpm cache
43- uses : actions/cache@v3
44- with :
45- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
46- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47- restore-keys : |
48- ${{ runner.os }}-pnpm-store-
49-
50- - name : Install dependencies
51- run : pnpm install
52-
5329 - name : Check all package.json's and tsconfig.json's are in sync.
5430 run : |
5531 pnpm sync
Original file line number Diff line number Diff line change @@ -18,37 +18,11 @@ jobs:
1818 pull-requests : write
1919
2020 steps :
21- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v4
2222 with :
23- fetch-depth : 0
24- token : ${{ secrets.CHANGESETS_GITHUB_TOKEN }}
23+ + token : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
2524
26- - name : Use Node.js
27- uses : actions/setup-node@v2
28- with :
29- node-version : 18.x
30-
31- # Wireit cache
32- - uses : google/wireit@setup-github-actions-caching/v1
33-
34- - uses : pnpm/action-setup@v2.2.2
35- with :
36- version : 7
37-
38- - name : Get pnpm store directory
39- id : pnpm-cache
40- run : echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
41-
42- - name : Setup pnpm cache
43- uses : actions/cache@v3
44- with :
45- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
46- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47- restore-keys : |
48- ${{ runner.os }}-pnpm-store-
49-
50- - name : Install dependencies
51- run : pnpm install
25+ - uses : ./.github/actions/setup
5226
5327 - name : Build packages
5428 run : pnpm run build
Original file line number Diff line number Diff line change 1717Please visit our documentation site to read more about these components
1818https://formidable.com/open-source/victory
1919
20- To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs
20+ To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs
You can’t perform that action at this time.
0 commit comments