Skip to content

Commit

Permalink
apply COREPACK_DEFAULT_TO_LATEST: 0 to every github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Feb 3, 2025
1 parent 3145d61 commit 67f0dc3
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/api-misskey-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
uses: actions/checkout@v4.1.1

- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0

- name: Setup Node.js
uses: actions/setup-node@v4.1.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/get-api-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile

lint:
Expand Down Expand Up @@ -73,6 +75,8 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Restore eslint cache
uses: actions/cache@v4.2.0
Expand Down Expand Up @@ -103,6 +107,8 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- run: pnpm --filter misskey-js run build
if: ${{ matrix.workspace == 'backend' || matrix.workspace == 'sw' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- run: cd locales && node verify.js
1 change: 1 addition & 0 deletions .github/workflows/on-release-created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ jobs:
pnpm build
pnpm --filter misskey-js publish --access public --no-git-checks --provenance
env:
COREPACK_DEFAULT_TO_LATEST: 0
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down Expand Up @@ -115,6 +117,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-federation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
corepack enable && corepack prepare
pnpm i --frozen-lockfile
pnpm build
env:
COREPACK_DEFAULT_TO_LATEST: 0
- name: Setup
run: |
cd packages/backend/test-federation
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down Expand Up @@ -99,6 +101,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Copy Configure
run: cp .github/misskey/test.yml .config
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-misskey-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
uses: actions/checkout@v4.1.1

- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.1.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/validate-api-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
- name: Install Redocly CLI
run: npm i -g @redocly/cli
- run: corepack enable
env:
COREPACK_DEFAULT_TO_LATEST: 0
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
Expand Down

0 comments on commit 67f0dc3

Please sign in to comment.