Skip to content

Commit

Permalink
chore: update actions to resolve github warning, update eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Feb 4, 2024
1 parent 5392788 commit a5c23d8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-unused-vars": "off",
"no-console": "off",
"func-names": "off",
"object-shorthand": "off",
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: install pnpm
uses: pnpm/action-setup@v2
# https://github.com/pnpm/action-setup/issues/99#issuecomment-1918361558
- run: corepack enable
- name: install node and pnpm
uses: actions/setup-node@v4
with:
version: 8
node-version: 20
cache: "pnpm"

- name: install
run: pnpm install
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: install pnpm
uses: pnpm/action-setup@v2
- run: corepack enable
- name: install node and pnpm
uses: actions/setup-node@v4
with:
version: 8
node-version: 20
cache: "pnpm"

- name: install
- name: Install dependencies
run: pnpm install
- name: lint
run: pnpm run lint
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/main-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: install pnpm
uses: pnpm/action-setup@v2
# https://github.com/pnpm/action-setup/issues/99#issuecomment-1918361558
- run: corepack enable
- name: install node and pnpm
uses: actions/setup-node@v4
with:
version: 8
node-version: 20
cache: "pnpm"

# prepare
- run: pnpm install
Expand Down

0 comments on commit a5c23d8

Please sign in to comment.