Skip to content

Commit 040bb25

Browse files
committed
ci: release script
1 parent beb1bb8 commit 040bb25

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.changeset/twenty-months-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'vue-nice-modal': minor
3+
---
4+
5+
publish dist

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version: 20
2424
cache: 'pnpm'
2525
- name: Install dependencies
26-
run: pnpm install
26+
run: pnpm install --ignore-workspace
2727
- name: Creating .npmrc
2828
run: |
2929
cat << EOF > "$HOME/.npmrc"
@@ -35,8 +35,8 @@ jobs:
3535
id: changesets
3636
uses: changesets/action@v1
3737
with:
38-
version: pnpm run version
39-
publish: pnpm exec changeset publish
38+
version: pnpm exec changeset version
39+
publish: pnpm --filter "./packages/**" build && pnpm exec changeset publish
4040
commit: '[CI] Release'
4141
title: '[CI] Release'
4242
env:

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"scripts": {
44
"changeset": "changeset",
55
"preinstall": "npx only-allow pnpm",
6-
"prepare": "husky install",
7-
"version": "changeset version && pnpm install"
6+
"prepare": "husky install"
87
},
98
"lint-staged": {
109
"*.{js,ts,css,md,jsx,tsx,vue,json}": "prettier . --write"

0 commit comments

Comments
 (0)