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:
parent
4eb8d93d56
commit
2dfc060d5d
4 changed files with 30 additions and 24 deletions
3
.github/workflows/core-main.yml
vendored
3
.github/workflows/core-main.yml
vendored
|
@ -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
|
||||
|
|
17
.github/workflows/phrases-main.yml
vendored
17
.github/workflows/phrases-main.yml
vendored
|
@ -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
|
||||
|
|
17
.github/workflows/schemas-main.yml
vendored
17
.github/workflows/schemas-main.yml
vendored
|
@ -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
|
||||
|
|
17
.github/workflows/ui-main.yml
vendored
17
.github/workflows/ui-main.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue