Skip to content

Commit 67fc436

Browse files
ci: 🔧 use reusable action to setup pnpm
1 parent c4eab98 commit 67fc436

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/deploy-to-cf.yaml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- main
7+
- main
88

99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
@@ -18,34 +18,14 @@ jobs:
1818
- name: Checkout 🧳
1919
uses: actions/checkout@v3
2020

21-
- name: Install Node.js 🔥
22-
uses: actions/setup-node@v3
21+
- name: Setup PNPM ⚙️
22+
uses: AkashRajpurohit/.github/.github/actions/setup-pnpm@main
2323
with:
24-
node-version: 18
25-
26-
- name: Install pnpm 👀
27-
uses: pnpm/action-setup@v2
28-
id: pnpm-install
29-
with:
30-
version: 7
31-
run_install: false
32-
33-
- name: Get pnpm store directory 🏪
34-
id: pnpm-cache
35-
shell: bash
36-
run: |
37-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
38-
39-
- name: Setup pnpm cache 💰
40-
uses: actions/cache@v3
41-
with:
42-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
43-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44-
restore-keys: |
45-
${{ runner.os }}-pnpm-store-
24+
node_version: 18
25+
pnpm_version: 7
4626

4727
- name: Install dependencies ⏬
48-
run: pnpm install
28+
run: pnpm install --no-frozen-lockfile
4929

5030
# Deploy
5131
- name: Deploy 🚀

0 commit comments

Comments
 (0)