Skip to content

Commit 02ea46d

Browse files
build: only build packages during release job (#1583)
1 parent 223f019 commit 02ea46d

File tree

10 files changed

+10
-9
lines changed

10 files changed

+10
-9
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"prepare": "git config core.hookspath .githooks",
1111
"start": "nx serve",
1212
"build": "nx run-many --target build --all --parallel=1 --exclude=astro-app",
13+
"build:release": "nx run-many --target build --projects=tag:type:release",
1314
"e2e": "nx run-many --target e2e --projects create-analog-e2e,analog-app-e2e-cypress --parallel=1 --exclude analog-app-e2e-playwright",
1415
"test": "nx run-many --target test",
1516
"build:vite-ci": "npm run build",

packages/astro-angular/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/astro-angular/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:release"],
77
"targets": {
88
"build": {
99
"executor": "@nx/js:tsc",

packages/content/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"projectType": "library",
55
"sourceRoot": "packages/content/src",
66
"prefix": "analogjs",
7-
"tags": [],
7+
"tags": ["type:release"],
88
"targets": {
99
"build": {
1010
"executor": "nx:run-commands",

packages/create-analog/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/vite-plugin-angular/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:release"],
77
"targets": {
88
"build": {
99
"executor": "nx:run-commands",

packages/platform/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/platform/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:release"],
77
"implicitDependencies": ["vite-plugin-angular", "vite-plugin-nitro"],
88
"targets": {
99
"build-package": {

packages/router/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"projectType": "library",
55
"sourceRoot": "packages/router/src",
66
"prefix": "analogjs",
7-
"tags": [],
7+
"tags": ["type:release"],
88
"targets": {
99
"build": {
1010
"executor": "@angular-devkit/build-angular:ng-packagr",

packages/vite-plugin-angular/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/vite-plugin-angular/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:release"],
77
"targets": {
88
"build": {
99
"executor": "@nx/js:tsc",

packages/vite-plugin-nitro/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/vite-plugin-nitro/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:release"],
77
"targets": {
88
"build": {
99
"executor": "@nx/js:tsc",

packages/vitest-angular/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/vitest-angular/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:release"],
77
"targets": {
88
"build": {
99
"executor": "@nx/js:tsc",

release.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ module.exports = {
181181
[
182182
'@semantic-release/exec',
183183
{
184-
publishCmd: `pnpm build && RELEASE_TAG=${tag} ./tools/publish.sh`,
184+
publishCmd: `pnpm build:release && RELEASE_TAG=${tag} ./tools/publish.sh`,
185185
},
186186
],
187187
[

0 commit comments

Comments
 (0)