Skip to content

Commit

Permalink
chore: update various github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Feb 15, 2024
1 parent d5cb283 commit 2bd7082
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 18
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 18
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpx lint-staged
pnpx lint-staged --config .lintstagedrc.json
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*": ["prettier -w -u --cache", "eslint --cache --no-warn-ignored --max-warnings=0"]
}
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,5 @@
"url": "https://github.com/HiDeoo/create-app.git",
"type": "git"
},
"prettier": "@hideoo/prettier-config",
"lint-staged": {
"*": [
"prettier -w -u --cache",
"eslint --cache --no-warn-ignored --max-warnings=0"
]
}
"prettier": "@hideoo/prettier-config"
}
4 changes: 2 additions & 2 deletions templates/.github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: [[NODE_VERSION]]
Expand Down
4 changes: 2 additions & 2 deletions templates/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: [[NODE_VERSION]]
Expand Down

0 comments on commit 2bd7082

Please sign in to comment.