1
- name : The Best Release Pipeline, Believe Me!
2
-
1
+ name : Release Workflow
3
2
on :
4
3
push :
5
4
branches :
6
5
- main
7
-
8
6
concurrency : ${{ github.workflow }}-${{ github.ref }}
9
7
10
8
jobs :
11
- setup :
12
- name : Setup Environment, Let’s Do This First!
9
+ release :
10
+ name : Checkout and Setup
13
11
runs-on : ubuntu-latest
14
- outputs :
15
- store_path : ${{ steps.store.outputs.store_path }}
16
12
steps :
17
- - name : Checkout the Greatest Code, Nobody Does It Better!
13
+ - name : Checkout Repository
18
14
uses : actions/checkout@v4
19
15
with :
20
16
fetch-depth : 0
21
17
22
- - name : Setting Up Node.js 20.x, It's a Perfect Node Version!
18
+ - name : Setup Node.js 20.x Environment
23
19
uses : actions/setup-node@v4
24
20
with :
25
21
node-version : 20
26
22
27
- - name : Installing pnpm, It's the Best Package Manager, Everyone Knows It!
23
+ - name : Install pnpm Package Manager
28
24
uses : pnpm/action-setup@v4
29
25
with :
30
26
run_install : false
31
27
32
- - name : Finding the pnpm Store, The Best Store, It's Yuge!
33
- id : store
28
+ - name : Get pnpm Store Directory
34
29
shell : bash
35
- run : echo "store_path =$(pnpm store path --silent)" >> $GITHUB_ENV && echo "::set-output name=store_path::$(pnpm store path --silent)"
30
+ run : echo "STORE_PATH =$(pnpm store path --silent)" >> $GITHUB_ENV
36
31
37
- - name : Caching pnpm Store, We Love Saving Time, Don’t We?
32
+ - name : Cache pnpm Store Directory
38
33
uses : actions/cache@v4
39
34
with :
40
- path : ${{ steps.store.outputs.store_path }}
35
+ path : ${{ env.STORE_PATH }}
41
36
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42
37
restore-keys : ${{ runner.os }}-pnpm-store-
43
38
44
- - name : Installing Dependencies, Faster Than Anyone Thought Possible!
39
+ - name : Install Project Dependencies
45
40
run : pnpm install
46
41
47
- release :
48
- name : Release the Package, It’s Show Time!
49
- runs-on : ubuntu-latest
50
- needs : setup
51
- steps :
52
- - name : Checkout the Greatest Code, Nobody Does It Better!
53
- uses : actions/checkout@v4
54
- with :
55
- fetch-depth : 0
56
-
57
- - name : Installing Dependencies, It's Already Setup, So Fast!
58
- run : pnpm install --frozen-lockfile
59
-
60
- - name : Create Release PR or Publish the Greatest Package Ever!
42
+ - name : Create Release Pull Request or Publish Package
61
43
id : changesets
62
44
uses : changesets/action@v1
63
45
with :
@@ -67,22 +49,19 @@ jobs:
67
49
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
68
50
69
51
chromatic :
70
- name : Running Chromatic, Visual Tests So Good, They’ll Blow Your Mind!
52
+ name : Run Chromatic Visual Tests
71
53
runs-on : ubuntu-latest
72
- needs : setup
54
+ needs : release
73
55
steps :
74
- - name : Checkout the Greatest Code, Nobody Does It Better!
56
+ - name : Checkout Repository
75
57
uses : actions/checkout@v4
76
58
with :
77
59
fetch-depth : 0
78
60
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!
61
+ - name : Run Chromatic Visual Tests
83
62
uses : chromaui/action@latest
84
63
with :
85
64
projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
86
65
workingDir : apps/docs
87
66
onlyChanged : true
88
- zip : true
67
+ zip :
0 commit comments