From 7dfd41baa67ad592986771a914169ecc819321c6 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 29 Mar 2023 13:09:28 +0200 Subject: [PATCH] chore(workflows): use install deps action Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- .github/workflows/build-and-test.yml | 27 ++------------------------- .github/workflows/publish.yml | 27 ++------------------------- .github/workflows/scan.yml | 27 ++------------------------- 3 files changed, 6 insertions(+), 75 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c8340c81..31cda6ad 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5f8d59bd..da40d9fa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index 8595c2c3..25e5f270 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -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