chore(workflows): use install deps action

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-29 13:09:28 +02:00
committed by Braks
parent d269f57d01
commit 7dfd41baa6
3 changed files with 6 additions and 75 deletions

View File

@@ -34,31 +34,8 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
- name: Install pnpm 🎒
uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: false
- name: Setup pnpm config 🏗
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Get pnpm store directory 🏬
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache 🧃
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Install Dependencies 👨🏻‍💻
uses: ./.github/actions/install-dependencies
- name: Setup Turbo cache 🏎️
id: turbo-cache

View File

@@ -34,34 +34,11 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
- uses: pnpm/action-setup@v2.2.2
name: Install pnpm
with:
version: 7
run_install: false
- name: Setup pnpm config 🏗
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
#- name: Setup npmrc 🏗
# run: echo "\n//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
- name: Get pnpm store directory 🏬
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache 🧃
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Install Dependencies 👨🏻‍💻
uses: ./.github/actions/install-dependencies
- name: Bump versions 🏷 and Publish 🚀
uses: changesets/action@v1

View File

@@ -33,31 +33,8 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
- name: Install pnpm 🎒
uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: false
- name: Setup pnpm config 🏗
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Get pnpm store directory 🏬
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache 🧃
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Install Dependencies 👨🏻‍💻
uses: ./.github/actions/install-dependencies
- name: Setup Turbo cache 🏎️
id: turbo-cache