Skip to content

Commit d8e2084

Browse files
committed
ci: fixed release script
1 parent fb6d10f commit d8e2084

File tree

5 files changed

+304
-25
lines changed

5 files changed

+304
-25
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"story.headless": "nx storybook headless",
1919
"test.headless": "nx component-test headless",
2020
"test.headless.ci": "nx component-test-ci headless",
21+
"update.version": "tsm ./scripts/update-versions.ts",
2122
"build": "nx build website",
2223
"build.cloudflare": "nx build-cloudflare website",
2324
"build.headless": "nx build headless",
@@ -42,6 +43,7 @@
4243
"@jscutlery/semver": "^3.1.0",
4344
"@k11r/nx-cloudflare-wrangler": "2.7.1",
4445
"@nx/cypress": "17.1.3",
46+
"@nx/eslint": "17.1.3",
4547
"@nx/eslint-plugin": "17.1.3",
4648
"@nx/js": "17.1.3",
4749
"@nx/storybook": "17.1.3",
@@ -112,6 +114,7 @@
112114
"tailwind-merge": "^1.14.0",
113115
"tailwindcss": "^3.3.3",
114116
"ts-node": "10.9.1",
117+
"tsm": "2.3.0",
115118
"typescript": "^5.2.2",
116119
"undici": "^5.23.0",
117120
"unified": "^10.1.2",
@@ -124,8 +127,7 @@
124127
"vite-plugin-static-copy": "0.17.0",
125128
"vite-tsconfig-paths": "4.2.0",
126129
"vitest": "^0.34.3",
127-
"wrangler": "^3.11.0",
128-
"@nx/eslint": "17.1.3"
130+
"wrangler": "^3.11.0"
129131
},
130132
"dependencies": {
131133
"@fontsource-variable/inter": "5.0.8",

packages/kit-headless/project.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@
5151
"noVerify": true,
5252
"push": true,
5353
"releaseAs": "patch",
54-
"postTargets": ["headless:publish", "headless:push-to-github"]
54+
"postTargets": [
55+
"headless:update-utils-version",
56+
"headless:publish",
57+
"headless:push-to-github"
58+
]
59+
}
60+
},
61+
"update-utils-version": {
62+
"executor": "nx:run-commands",
63+
"options": {
64+
"command": "pnpm update.version"
5565
}
5666
},
5767
"publish": {
@@ -65,7 +75,7 @@
6575
"options": {
6676
"tag": "${tag}",
6777
"notes": "${notes}",
68-
"title": "@qwik-ui/kit-headless@${version}"
78+
"title": "@qwik-ui/headless@${version}"
6979
}
7080
},
7181
"storybook": {
@@ -86,7 +96,7 @@
8696
"options": {
8797
"uiFramework": "@storybook/html",
8898
"configDir": "packages/kit-headless/.storybook",
89-
"outputDir": "dist/storybook/headless"
99+
"outputDir": "dist/storybook/kit-headless"
90100
},
91101
"configurations": {
92102
"ci": {

0 commit comments

Comments
 (0)