File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 8383
8484 - name : Check types
8585 run : pnpm tsc
86+
87+ build :
88+ name : Build on Node ${{ matrix.node }} on ${{ matrix.os }}
89+ runs-on : ${{ matrix.os }}
90+ strategy :
91+ matrix :
92+ node : ["16.x", "18.x"]
93+ os : [ubuntu-latest, windows-latest, macOS-latest]
94+ steps :
95+ - name : Checkout
96+ uses : actions/checkout@v3
97+
98+ - name : Setup Node
99+ uses : actions/setup-node@v3
100+ with :
101+ node-version : 18
102+
103+ - uses : pnpm/action-setup@v2
104+ name : Install pnpm
105+ with :
106+ version : 7
107+ run_install : false
108+
109+ - name : Get pnpm store directory
110+ id : pnpm-cache
111+ shell : bash
112+ run : |
113+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
114+
115+ - uses : actions/cache@v3
116+ name : Setup pnpm cache
117+ with :
118+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
119+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
120+ restore-keys : |
121+ ${{ runner.os }}-pnpm-store-
122+
123+ - name : Install dependencies
124+ run : pnpm install --frozen-lockfile
125+
126+ - name : Build
127+ run : pnpm build
You can’t perform that action at this time.
0 commit comments