Skip to content

Commit

Permalink
ci: fix pnpm not found
Browse files Browse the repository at this point in the history
  • Loading branch information
edvardchen committed Sep 13, 2024
1 parent 394250d commit 1b27e2b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v1
- uses: pnpm/action-setup@v2
with:
version: 8.13.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
- name: build and test
run: |
pnpm i --frozen-lockfile
pnpm run build --if-present
pnpm test
env:
CI: true
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8.13.1
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12.*
node-version: 20.*
cache: pnpm
- name: Configure committer
run: |
git config --global user.name ${GITHUB_ACTOR}
Expand Down
6 changes: 2 additions & 4 deletions examples/app-with-eslint9/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ export default [
linterOptions: { reportUnusedDisableDirectives: 'error' },
},
pluginJs.configs.recommended,
i18next.configs?.['flat/recommended'],
{
plugins: { i18next },
rules: {
'i18next/no-literal-string': ['error', { mode: 'all' }],
},
rules: { 'i18next/no-literal-string': ['error', { mode: 'all' }] },
},
];

0 comments on commit 1b27e2b

Please sign in to comment.