Skip to content

Commit 661d607

Browse files
committed
chore: ci workflow
1 parent 008cff8 commit 661d607

File tree

6 files changed

+57
-105
lines changed

6 files changed

+57
-105
lines changed

.github/workflows/npm_release_core.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/secure_nx_release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,20 @@ jobs:
113113
base='${{ github.event.before }}'
114114
head='${{ github.sha }}'
115115
116+
# Handle edge cases where base commit doesn't exist (first push, force-push, etc.)
117+
# Use HEAD~1 as fallback, or just compare against HEAD if no parent exists
118+
if [[ "$base" == "0000000000000000000000000000000000000000" ]] || ! git cat-file -e "$base" 2>/dev/null; then
119+
echo "Base commit not available, falling back to HEAD~1"
120+
base="HEAD~1"
121+
# If HEAD~1 doesn't exist (first commit), use empty tree
122+
if ! git cat-file -e "$base" 2>/dev/null; then
123+
base="$(git hash-object -t tree /dev/null)"
124+
fi
125+
fi
126+
116127
# Only consider libs under packages/* and exclude items configured as non-releaseable.
117128
affected_json=$(npx nx show projects --affected --base "$base" --head "$head" --type lib --projects "packages/*" --exclude "ui-mobile-base,types-minimal,winter-tc,types,types-ios,types-android" --json)
118-
affected_list=$(printf '%s' "$affected_json" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const a=JSON.parse(s||"[]");process.stdout.write(a.join(" "));});')
129+
affected_list=$(printf '%s' "$affected_json" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const a=JSON.parse(s||"[]");process.stdout.write(a.join(","));});')
119130
affected_count=$(printf '%s' "$affected_json" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const a=JSON.parse(s||"[]");process.stdout.write(String(a.length));});')
120131
121132
echo "projects=${affected_list}" >> "$GITHUB_OUTPUT"
@@ -176,7 +187,6 @@ jobs:
176187
--preid next \
177188
--projects "${{ steps.affected.outputs.projects }}" \
178189
--git-commit \
179-
--git-tag \
180190
--git-push \
181191
--verbose
182192
@@ -201,7 +211,6 @@ jobs:
201211
--preid "${{ steps.ctx.outputs.dist_tag }}" \
202212
"${projects_arg[@]}" \
203213
--git-commit \
204-
--git-tag \
205214
--git-push \
206215
--verbose
207216

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/core",
3-
"version": "9.0.9",
3+
"version": "9.0.11-next.0",
44
"description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
55
"type": "module",
66
"main": "index",

packages/devtools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/devtools",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"private": true,
55
"files": [
66
"./dist/"
@@ -10,6 +10,6 @@
1010
"prepack": "tsc || echo ok"
1111
},
1212
"devDependencies": {
13-
"@nativescript/core": "../core"
13+
"@nativescript/core": "9.0.10-next.0"
1414
}
1515
}

packages/vite/package.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name": "@nativescript/vite",
3-
"version": "1.0.2",
4-
"description": "Vite for NativeScript",
5-
"main": "./index.js",
6-
"module": "./index.js",
7-
"types": "./index.d.ts",
8-
"type": "module",
9-
"bin": {
10-
"nativescript-vite": "./bin/cli.cjs"
11-
},
12-
"keywords": [
13-
"nativescript",
14-
"vite"
15-
],
16-
"dependencies": {
17-
"@analogjs/vite-plugin-angular": "^2.0.0",
18-
"@angular-devkit/build-angular": "^20.0.0",
19-
"@angular/build": "^20.0.0",
20-
"@babel/core": "^7.28.0",
21-
"@babel/generator": "^7.28.0",
22-
"@babel/parser": "^7.28.0",
23-
"@babel/plugin-transform-typescript": "^7.28.0",
24-
"@rollup/plugin-alias": "^6.0.0",
25-
"@rollup/plugin-commonjs": "^29.0.0",
26-
"@rollup/plugin-replace": "^6.0.2",
27-
"@vitejs/plugin-vue": "^6.0.1",
28-
"@vitejs/plugin-vue-jsx": "^5.1.1",
29-
"@vue/compiler-sfc": "^3.4.38",
30-
"esbuild": "^0.25.0",
31-
"minimist": "^1.2.8",
32-
"react-reconciler": "^0.32.0",
33-
"sass": ">=1.70.0 <2",
34-
"vite": "^7.2.0",
35-
"vite-plugin-solid": "^2.11.8",
36-
"vite-plugin-static-copy": "^3.1.0",
37-
"ws": "^8.18.0"
38-
},
39-
"devDependencies": {
40-
"@types/node": "^24.9.1",
41-
"vitest": "^3.2.4"
42-
}
2+
"name": "@nativescript/vite",
3+
"version": "1.0.3",
4+
"description": "Vite for NativeScript",
5+
"main": "./index.js",
6+
"module": "./index.js",
7+
"types": "./index.d.ts",
8+
"type": "module",
9+
"bin": {
10+
"nativescript-vite": "./bin/cli.cjs"
11+
},
12+
"keywords": [
13+
"nativescript",
14+
"vite"
15+
],
16+
"dependencies": {
17+
"@analogjs/vite-plugin-angular": "^2.0.0",
18+
"@angular-devkit/build-angular": "^20.0.0",
19+
"@angular/build": "^20.0.0",
20+
"@babel/core": "^7.28.0",
21+
"@babel/generator": "^7.28.0",
22+
"@babel/parser": "^7.28.0",
23+
"@babel/plugin-transform-typescript": "^7.28.0",
24+
"@rollup/plugin-alias": "^6.0.0",
25+
"@rollup/plugin-commonjs": "^29.0.0",
26+
"@rollup/plugin-replace": "^6.0.2",
27+
"@vitejs/plugin-vue": "^6.0.1",
28+
"@vitejs/plugin-vue-jsx": "^5.1.1",
29+
"@vue/compiler-sfc": "^3.4.38",
30+
"esbuild": "^0.25.0",
31+
"minimist": "^1.2.8",
32+
"react-reconciler": "^0.32.0",
33+
"sass": ">=1.70.0 <2",
34+
"vite": "^7.2.0",
35+
"vite-plugin-solid": "^2.11.8",
36+
"vite-plugin-static-copy": "^3.1.0",
37+
"ws": "^8.18.0"
38+
},
39+
"devDependencies": {
40+
"@types/node": "^24.9.1",
41+
"vitest": "^3.2.4"
42+
}
4343
}

packages/webpack5/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/webpack",
3-
"version": "5.0.30-next.0",
3+
"version": "5.0.30",
44
"private": false,
55
"main": "dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)