Skip to content

Commit

Permalink
feat(ci): add prepublishOnly hook
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Jun 20, 2022
1 parent 876ffa3 commit dcffc52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: pnpm install

- name: Build the release
run: pnpm run build

- name: Publish to npm
run: pnpm -r --filter './packages/**' --filter './.stacks' publish --access public --no-git-checks
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"pnpm": ">=7.3.0"
},
"scripts": {
"build": "pnpm fresh && pnpm -r --filter './packages/**' --filter './.stacks' run build",
"build": "pnpm -r --filter './packages/**' --filter './.stacks' run build",
"build:stacks": "pnpm --filter './.stacks' run build",
"build:composables": "pnpm --filter './packages/composables' run build",
"build:components": "pnpm --filter './packages/components' run build",
Expand All @@ -61,6 +61,7 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"play": "pnpm --filter './playground' dev",
"prepublishOnly": "pnpm i && pnpm run build",
"release": "npx bumpp package.json .stacks/package.json packages/*/package.json --execute 'pnpm run changelog' --all",
"size": "esno .stacks/scripts/size.ts",
"stub": "pnpm -r --parallel run stub",
Expand Down

0 comments on commit dcffc52

Please sign in to comment.