Switch to pnpm (#1168)

This commit is contained in:
Sasha Sorokin 2023-05-28 19:21:14 +01:00 committed by GitHub
parent a349aed94c
commit 3b0dc2195d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6615 additions and 6203 deletions

View File

@ -16,18 +16,26 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate
- 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.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
run: pnpm install
- name: Run Lint
run: npm run lint
run: pnpm lint
- name: Build
run: npm run build
run: pnpm build

4
.gitignore vendored
View File

@ -81,7 +81,3 @@ sw.*
# Vim swap files
*.swp
# pnpm files
pnpm-lock.yaml
/.npmrc

View File

@ -37,5 +37,6 @@
"markdown-it": "^13.0.1",
"vue-multiselect": "^3.0.0-alpha.2",
"xss": "^1.0.14"
}
},
"packageManager": "pnpm@8.5.1"
}

6595
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

6188
yarn.lock

File diff suppressed because it is too large Load Diff