Skip to content

Commit db1a4fa

Browse files
committed
ici: release script
1 parent beb1bb8 commit db1a4fa

File tree

6 files changed

+4232
-985
lines changed

6 files changed

+4232
-985
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: 2 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,7 @@ jobs:
3535
id: changesets
3636
uses: changesets/action@v1
3737
with:
38-
version: pnpm run version
39-
publish: pnpm exec changeset publish
38+
publish: pnpm release
4039
commit: '[CI] Release'
4140
title: '[CI] Release'
4241
env:

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"changeset": "changeset",
55
"preinstall": "npx only-allow pnpm",
66
"prepare": "husky install",
7-
"version": "changeset version && pnpm install"
7+
"release": "zx ./scripts/release.mjs"
88
},
99
"lint-staged": {
1010
"*.{js,ts,css,md,jsx,tsx,vue,json}": "prettier . --write"
@@ -13,11 +13,14 @@
1313
"@changesets/cli": "^2.26.2"
1414
},
1515
"devDependencies": {
16+
"@changesets/get-release-plan": "^4.0.8",
17+
"@pnpm/find-workspace-packages": "^6.0.9",
1618
"husky": "^8.0.3",
1719
"lint-staged": "^13.2.2",
1820
"pnpm": "9.15.4",
1921
"prettier": "^2.8.8",
20-
"prettier-plugin-packagejson": "^2.4.3"
22+
"prettier-plugin-packagejson": "^2.4.3",
23+
"zx": "^8.4.1"
2124
},
2225
"packageManager": "[email protected]"
2326
}

0 commit comments

Comments
 (0)