refactor: replace yarn with pnpm as package manager

This commit is contained in:
bcakmakoglu
2022-06-01 21:03:43 +02:00
committed by Braks
parent 710b22eb0e
commit c07069dcd0
22 changed files with 9887 additions and 22286 deletions

View File

@@ -31,32 +31,39 @@ jobs:
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
id: pnpm-cache-dir-path
run: echo "::set-output name=dir::$(pnpm cache dir)"
- name: Cache node_modules 📦
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
uses: actions/cache@v3
id: pnpm-cache # use this to check for `cache-hit` (`steps.pnpm-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pnpm-
- name: Install dependencies 👨🏻‍💻
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Run linter 🧹
run: yarn lint
run: pnpm lint
- name: Build Library 👷
run: yarn build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}"
run: pnpm build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}"
- name: Run tests 🧪
run: yarn test
run: pnpm test