Skip to content

Commit de0b227

Browse files
authored
Merge pull request #17 from zentered/fix/action-publish
chore: update publish workflow to install husky
2 parents 5e171bf + f635a55 commit de0b227

3 files changed

Lines changed: 650 additions & 636 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
- uses: pnpm/action-setup@v2
14+
with:
15+
version: 7
16+
1317
- uses: actions/setup-node@v3
1418
with:
15-
node-version: 18
19+
node-version: "18"
20+
cache: "pnpm"
21+
- run: pnpm i
22+
- run: pnpm run lint
23+
- run: pnpm build
24+
1625
- run: npx semantic-release
1726
env:
1827
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1928
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
HUSKY: 0

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"build": "run-s build:*",
5353
"build:client": "esbuild lib/index.tsx --bundle --outfile=dist/index.browser.jsx --jsx=preserve --external:solid-js --format=esm && tsc",
5454
"build:server": "esbuild lib/index.tsx --bundle --platform=node --outfile=dist/index.jsx --jsx=preserve --external:solid-js --format=esm && tsc",
55-
"prepare": "is-ci || husky install"
55+
"prepare": "husky install"
5656
},
5757
"commitlint": {
5858
"extends": [
@@ -99,7 +99,6 @@
9999
"eslint-plugin-markdown": "^3.0.0",
100100
"eslint-plugin-solid": "^0.11.0",
101101
"husky": "^8.0.3",
102-
"is-ci": "^3.0.1",
103102
"lint-staged": "^13.2.0",
104103
"npm-run-all": "^4.1.5",
105104
"prettier": "^2.8.7",

0 commit comments

Comments
 (0)