File tree 2 files changed +29
-18
lines changed
2 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 1
- name : " Chromatic"
1
+ name : ' Chromatic'
2
2
on : push
3
3
jobs :
4
4
publish :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v3
7
+ # https://github.com/actions/checkout
8
+ - uses : actions/checkout@v4
8
9
with :
9
10
fetch-depth : 0
10
- - name : Install Node.js
11
- uses : actions/setup-node@v3
11
+
12
+ # https://nodejs.org/api/corepack.html
13
+ - name : Enable corepack (for pnpm)
14
+ run : corepack enable
15
+
16
+ # https://github.com/actions/setup-node
17
+ - name : Setup Node.js
18
+ uses : actions/setup-node@v4
12
19
with :
20
+ cache : pnpm
13
21
node-version : 20
14
- - name : Install dependencies
15
- uses : pnpm/action-setup@v2
16
- with :
17
- version : 8
18
- run_install : true
22
+
23
+ # https://pnpm.io/cli/install
24
+ - name : Install Node.js dependencies with pnpm
25
+ run : >
26
+ pnpm install
27
+ --frozen-lockfile
28
+
19
29
- name : Publish to Chromatic
20
30
uses : chromaui/action@v1
21
31
with :
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
9
9
steps :
10
- - uses : actions/checkout@v3
10
+ # https://github.com/actions/checkout
11
+ - uses : actions/checkout@v4
11
12
12
13
- name : Prepare repository
13
14
run : git fetch --unshallow --tags
@@ -17,16 +18,16 @@ jobs:
17
18
git config --global user.name 'storybook-bot'
18
19
git config --global user.email '[email protected] '
19
20
20
- - name : Use Node.js 20.x
21
- uses : actions/setup-node@v3
22
- with :
23
- node-version : 20.x
21
+ # https://nodejs.org/api/corepack.html
22
+ - name : Enable corepack (for pnpm)
23
+ run : corepack enable
24
24
25
- - name : Install dependencies
26
- uses : pnpm/action-setup@v2
25
+ # https://github.com/actions/setup-node
26
+ - name : Setup Node.js
27
+ uses : actions/setup-node@v4
27
28
with :
28
- version : 8
29
- run_install : true
29
+ cache : pnpm
30
+ node-version : 20
30
31
31
32
- name : Create Release
32
33
env :
You can’t perform that action at this time.
0 commit comments