0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

fix: correct github workflows

This commit is contained in:
Gao Sun 2021-07-29 17:54:43 +08:00
parent 4eb8d93d56
commit 2dfc060d5d
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
4 changed files with 30 additions and 24 deletions

View file

@ -33,9 +33,6 @@ jobs:
version: 6.0.2
run_install: true
- name: Install packages
run: pnpm i
- name: Lint
working-directory: packages/core
run: pnpm lint

View file

@ -19,16 +19,19 @@ jobs:
with:
node-version: '14'
# https://github.com/actions/cache/blob/main/examples.md#node---npm
- uses: actions/cache@v2
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install packages
run: npm ci
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
- name: Lint
working-directory: packages/phrases

View file

@ -19,16 +19,19 @@ jobs:
with:
node-version: '14'
# https://github.com/actions/cache/blob/main/examples.md#node---npm
- uses: actions/cache@v2
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install packages
run: npm ci
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
- name: Lint
working-directory: packages/schemas

View file

@ -19,16 +19,19 @@ jobs:
with:
node-version: '14'
# https://github.com/actions/cache/blob/main/examples.md#node---npm
- uses: actions/cache@v2
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install packages
run: npm ci
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
- name: Lint
working-directory: packages/ui