Skip to content

Commit 736365c

Browse files
committed
ci: spm build
1 parent 732c439 commit 736365c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/npm_release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ jobs:
8989
strategy:
9090
fail-fast: false
9191
matrix:
92-
target: [ios, visionos]
92+
# `target` is the package identity (artifact names, @nativescript/<target>);
93+
# `script` is the npm script that builds it (note: the vision script is build-vision).
94+
include:
95+
- target: ios
96+
script: build-ios
97+
- target: visionos
98+
script: build-vision
9399
env:
94100
NPM_VERSION: ${{ needs.setup.outputs.npm_version }}
95101
steps:
@@ -134,7 +140,7 @@ jobs:
134140
- name: Set package version
135141
run: npm version $NPM_VERSION --no-git-tag-version --allow-same-version
136142
- name: Build (${{ matrix.target }})
137-
run: npm run build-${{ matrix.target }}
143+
run: npm run ${{ matrix.script }}
138144
- name: Upload npm package artifact
139145
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
140146
with:

0 commit comments

Comments
 (0)