Skip to content

Commit a8efe95

Browse files
authored
Merge pull request #140 from dysfunc/publishing
ci(publish): update release workflow
2 parents b1c9967 + 5845366 commit a8efe95

File tree

4 files changed

+852
-1182
lines changed

4 files changed

+852
-1182
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
node-version: 20
2222
cache: 'pnpm'
2323
registry-url: 'https://registry.npmjs.org'
24+
- name: Install dependencies
25+
run: pnpm install
2426
- name: Check size
2527
uses: andresz1/size-limit-action@master
2628
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- name: Install dependencies
2323
run: pnpm install
2424
- name: Publish
25-
run: pnpm publish --no-git-checks
25+
run: pnpm test && pnpm build && pnpm publish --no-git-checks
2626
env:
2727
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
},
2020
"./package.json": "./package.json"
2121
},
22-
"publishConfig": {
23-
"directory": "dist"
24-
},
2522
"files": [
2623
"dist",
2724
"src"
@@ -35,8 +32,6 @@
3532
},
3633
"scripts": {
3734
"build": "svelte-package --input ./src && pnpm lint:package",
38-
"prepublishOnly": "pnpm test && pnpm build",
39-
"postpublish": "del ./dist",
4035
"commit": "cz",
4136
"format": "prettier --write 'src/**/*.{js,ts,svelte}'",
4237
"test:lint": "eslint src --ext .js,.svelte",

0 commit comments

Comments
 (0)