Skip to content

Commit

Permalink
Merge pull request #140 from dysfunc/publishing
Browse files Browse the repository at this point in the history
ci(publish): update release workflow
  • Loading branch information
niemyjski authored Jan 30, 2024
2 parents b1c9967 + 5845366 commit a8efe95
Show file tree
Hide file tree
Showing 4 changed files with 852 additions and 1,182 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Check size
uses: andresz1/size-limit-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Publish
run: pnpm publish --no-git-checks
run: pnpm test && pnpm build && pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
},
"./package.json": "./package.json"
},
"publishConfig": {
"directory": "dist"
},
"files": [
"dist",
"src"
Expand All @@ -35,8 +32,6 @@
},
"scripts": {
"build": "svelte-package --input ./src && pnpm lint:package",
"prepublishOnly": "pnpm test && pnpm build",
"postpublish": "del ./dist",
"commit": "cz",
"format": "prettier --write 'src/**/*.{js,ts,svelte}'",
"test:lint": "eslint src --ext .js,.svelte",
Expand Down
Loading

0 comments on commit a8efe95

Please sign in to comment.