@@ -9,8 +9,10 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
9
10
10
jobs :
11
11
setup :
12
- name : Setup Node.js & pnpm, Time to Roll !
12
+ name : Setup Environment, Let’s Do This First !
13
13
runs-on : ubuntu-latest
14
+ outputs :
15
+ store_path : ${{ steps.store.outputs.store_path }}
14
16
steps :
15
17
- name : Checkout the Greatest Code, Nobody Does It Better!
16
18
uses : actions/checkout@v4
@@ -28,13 +30,14 @@ jobs:
28
30
run_install : false
29
31
30
32
- name : Finding the pnpm Store, The Best Store, It's Yuge!
33
+ id : store
31
34
shell : bash
32
- run : echo "STORE_PATH =$(pnpm store path --silent)" >> $GITHUB_ENV
35
+ run : echo "store_path =$(pnpm store path --silent)" >> $GITHUB_ENV && echo "::set-output name=store_path::$(pnpm store path --silent)"
33
36
34
37
- name : Caching pnpm Store, We Love Saving Time, Don’t We?
35
38
uses : actions/cache@v4
36
39
with :
37
- path : ${{ env.STORE_PATH }}
40
+ path : ${{ steps.store.outputs.store_path }}
38
41
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39
42
restore-keys : ${{ runner.os }}-pnpm-store-
40
43
51
54
with :
52
55
fetch-depth : 0
53
56
57
+ - name : Installing Dependencies, It's Already Setup, So Fast!
58
+ run : pnpm install --frozen-lockfile
59
+
54
60
- name : Create Release PR or Publish the Greatest Package Ever!
55
61
id : changesets
56
62
uses : changesets/action@v1
61
67
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
62
68
63
69
chromatic :
64
- name : Run Chromatic Tests, Let’s See the Magic !
70
+ name : Running Chromatic, Visual Tests So Good, They’ll Blow Your Mind !
65
71
runs-on : ubuntu-latest
66
72
needs : setup
67
73
steps :
70
76
with :
71
77
fetch-depth : 0
72
78
73
- - name : Run Chromatic, Visual Tests So Good, They’ll Blow Your Mind!
79
+ - name : Installing Dependencies, It's Already Setup, So Fast!
80
+ run : pnpm install --frozen-lockfile
81
+
82
+ - name : Running Chromatic, Visual Tests So Good, They’ll Blow Your Mind!
74
83
uses : chromaui/action@latest
75
84
with :
76
85
projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
0 commit comments