Skip to content

Commit 7dfd41b

Browse files
committed
chore(workflows): use install deps action
Signed-off-by: braks <[email protected]>
1 parent d269f57 commit 7dfd41b

File tree

3 files changed

+6
-75
lines changed

3 files changed

+6
-75
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,8 @@ jobs:
3434
node-version: ${{ matrix.node }}
3535
check-latest: true
3636

37-
- name: Install pnpm 🎒
38-
uses: pnpm/[email protected]
39-
with:
40-
version: 7
41-
run_install: false
42-
43-
- name: Setup pnpm config 🏗
44-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
45-
46-
- name: Get pnpm store directory 🏬
47-
id: pnpm-cache
48-
shell: bash
49-
run: |
50-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
51-
52-
- name: Setup pnpm cache 🧃
53-
uses: actions/cache@v3
54-
with:
55-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
56-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
57-
restore-keys: |
58-
${{ runner.os }}-pnpm-store-
59-
60-
- name: Install dependencies 👨🏻‍💻
61-
run: pnpm install
37+
- name: Install Dependencies 👨🏻‍💻
38+
uses: ./.github/actions/install-dependencies
6239

6340
- name: Setup Turbo cache 🏎️
6441
id: turbo-cache

.github/workflows/publish.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,11 @@ jobs:
3434
node-version: ${{ matrix.node }}
3535
check-latest: true
3636

37-
- uses: pnpm/[email protected]
38-
name: Install pnpm
39-
with:
40-
version: 7
41-
run_install: false
42-
43-
- name: Setup pnpm config 🏗
44-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
45-
4637
#- name: Setup npmrc 🏗
4738
# run: echo "\n//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
4839

49-
- name: Get pnpm store directory 🏬
50-
id: pnpm-cache
51-
shell: bash
52-
run: |
53-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
54-
55-
- name: Setup pnpm cache 🧃
56-
uses: actions/cache@v3
57-
with:
58-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
59-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
60-
restore-keys: |
61-
${{ runner.os }}-pnpm-store-
62-
63-
- name: Install dependencies 👨🏻‍💻
64-
run: pnpm install
40+
- name: Install Dependencies 👨🏻‍💻
41+
uses: ./.github/actions/install-dependencies
6542

6643
- name: Bump versions 🏷 and Publish 🚀
6744
uses: changesets/action@v1

.github/workflows/scan.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,8 @@ jobs:
3333
node-version: ${{ matrix.node }}
3434
check-latest: true
3535

36-
- name: Install pnpm 🎒
37-
uses: pnpm/[email protected]
38-
with:
39-
version: 7
40-
run_install: false
41-
42-
- name: Setup pnpm config 🏗
43-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
44-
45-
- name: Get pnpm store directory 🏬
46-
id: pnpm-cache
47-
shell: bash
48-
run: |
49-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
50-
51-
- name: Setup pnpm cache 🧃
52-
uses: actions/cache@v3
53-
with:
54-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
55-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
56-
restore-keys: |
57-
${{ runner.os }}-pnpm-store-
58-
59-
- name: Install dependencies 👨🏻‍💻
60-
run: pnpm install
36+
- name: Install Dependencies 👨🏻‍💻
37+
uses: ./.github/actions/install-dependencies
6138

6239
- name: Setup Turbo cache 🏎️
6340
id: turbo-cache

0 commit comments

Comments
 (0)