Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: npm install

- name: Download V8
run: ./download_v8.sh
run: ./scripts/download_v8.sh

- name: Install libffi build tools
run: brew install autoconf automake libtool texinfo
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/npm_napi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,45 +58,45 @@ jobs:
if: ${{ !contains(github.ref, 'refs/tags/') }}
run: |
# Bump @nativescript/ios-node-api
NPM_VERSION_IOS=$(node ./scripts/get-next-version.js ios)
NPM_VERSION_IOS=$(node ./scripts/get-next-version.js ios-node-api)
echo NPM_VERSION_IOS=$NPM_VERSION_IOS >> $GITHUB_ENV
cd packages/ios
cd packages/ios-node-api
npm version $NPM_VERSION_IOS --no-git-tag-version
cd -

# Bump @nativescript/macos-node-api
NPM_VERSION_MACOS=$(node ./scripts/get-next-version.js macos)
NPM_VERSION_MACOS=$(node ./scripts/get-next-version.js macos-node-api)
echo NPM_VERSION_MACOS=$NPM_VERSION_MACOS >> $GITHUB_ENV
cd packages/macos
cd packages/macos-node-api
npm version $NPM_VERSION_MACOS --no-git-tag-version
cd -
- name: Output NPM Versions and tags
id: npm_version_output
run: |
NPM_TAG_IOS=$(node ./scripts/get-npm-tag.js ios)
NPM_TAG_MACOS=$(node ./scripts/get-npm-tag.js macos)
NPM_TAG_IOS=$(node ./scripts/get-npm-tag.js ios-node-api)
NPM_TAG_MACOS=$(node ./scripts/get-npm-tag.js macos-node-api)
echo NPM_VERSION_IOS=$NPM_VERSION_IOS >> $GITHUB_OUTPUT
echo NPM_VERSION_MACOS=$NPM_VERSION_MACOS >> $GITHUB_OUTPUT
echo NPM_TAG_IOS=$NPM_TAG_IOS >> $GITHUB_OUTPUT
echo NPM_TAG_MACOS=$NPM_TAG_MACOS >> $GITHUB_OUTPUT
- name: Build
run: ./build_all_react_native.sh
run: ./scripts/build_all_react_native.sh
- name: Pack @nativescript/ios-node-api
working-directory: packages/ios
run: npm pack
working-directory: packages/ios-node-api
run: npm pack --pack-destination dist
- name: Pack @nativescript/macos-node-api
working-directory: packages/macos
run: npm pack
working-directory: packages/macos-node-api
run: npm pack --pack-destination dist
- name: Upload npm package artifact for @nativescript/ios-node-api
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: nativescript-ios-node-api
path: packages/ios/nativescript-ios-node-api-${{steps.npm_version_output.outputs.NPM_VERSION_IOS}}.tgz
path: packages/ios-node-api/dist/nativescript-ios-node-api-${{steps.npm_version_output.outputs.NPM_VERSION_IOS}}.tgz
- name: Upload npm package artifact for @nativescript/macos-node-api
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: nativescript-macos-node-api
path: packages/macos/nativescript-macos-node-api-${{steps.npm_version_output.outputs.NPM_VERSION_MACOS}}.tgz
path: packages/macos-node-api/dist/nativescript-macos-node-api-${{steps.npm_version_output.outputs.NPM_VERSION_MACOS}}.tgz
publish:
runs-on: ubuntu-latest
environment: npm-publish
Expand All @@ -122,11 +122,11 @@ jobs:
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: nativescript-ios-node-api
path: packages/ios
path: packages/ios-node-api/dist
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: nativescript-macos-node-api
path: packages/macos
path: packages/macos-node-api/dist
- name: Update npm (required for OIDC trusted publishing)
run: |
npm install -g npm@^11.6.2
Expand All @@ -139,7 +139,7 @@ jobs:
if [ -n "${NPM_CONFIG_USERCONFIG:-}" ]; then
rm -f "$NPM_CONFIG_USERCONFIG"
fi
npm publish packages/ios/nativescript-ios-node-api-${{env.NPM_VERSION_IOS}}.tgz --tag $NPM_TAG_IOS --access public --provenance
npm publish packages/ios-node-api/dist/nativescript-ios-node-api-${{env.NPM_VERSION_IOS}}.tgz --tag $NPM_TAG_IOS --access public --provenance
env:
NODE_AUTH_TOKEN: ""
- name: Publish @nativescript/macos-node-api package (OIDC trusted publishing)
Expand All @@ -150,21 +150,21 @@ jobs:
if [ -n "${NPM_CONFIG_USERCONFIG:-}" ]; then
rm -f "$NPM_CONFIG_USERCONFIG"
fi
npm publish packages/macos/nativescript-macos-node-api-${{env.NPM_VERSION_MACOS}}.tgz --tag $NPM_TAG_MACOS --access public --provenance
npm publish packages/macos-node-api/dist/nativescript-macos-node-api-${{env.NPM_VERSION_MACOS}}.tgz --tag $NPM_TAG_MACOS --access public --provenance
env:
NODE_AUTH_TOKEN: ""
- name: Publish @nativescript/ios-node-api package (granular token)
if: ${{ vars.USE_NPM_TOKEN == 'true' }}
run: |
echo "Publishing @nativescript/ios-node-api@$NPM_VERSION to NPM with tag $NPM_TAG_IOS via granular token..."
npm publish packages/ios/nativescript-ios-node-api-${{env.NPM_VERSION_IOS}}.tgz --tag $NPM_TAG_IOS --access public --provenance
npm publish packages/ios-node-api/dist/nativescript-ios-node-api-${{env.NPM_VERSION_IOS}}.tgz --tag $NPM_TAG_IOS --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish @nativescript/macos-node-api package (granular token)
if: ${{ vars.USE_NPM_TOKEN == 'true' }}
run: |
echo "Publishing @nativescript/macos-node-api@$NPM_VERSION to NPM with tag $NPM_TAG_MACOS via granular token..."
npm publish packages/macos/nativescript-macos-node-api-${{env.NPM_VERSION_MACOS}}.tgz --tag $NPM_TAG_MACOS --access public --provenance
npm publish packages/macos-node-api/dist/nativescript-macos-node-api-${{env.NPM_VERSION_MACOS}}.tgz --tag $NPM_TAG_MACOS --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
github-release:
Expand Down Expand Up @@ -194,20 +194,20 @@ jobs:
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: nativescript-ios-node-api
path: packages/ios
path: packages/ios-node-api/dist
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: nativescript-macos-node-api
path: packages/macos
path: packages/macos-node-api/dist
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: nativescript-macos-node-api
path: packages/macos
path: packages/macos-node-api/dist
- name: Partial Changelog
run: npx conventional-changelog -p angular -r2 > body.md
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
with:
artifacts: "packages/macos/nativescript-macos-node-api-*.tgz,packages/ios/nativescript-ios-node-api-*.tgz"
artifacts: "packages/macos-node-api/dist/nativescript-macos-node-api-*.tgz,packages/ios-node-api/dist/nativescript-ios-node-api-*.tgz"
bodyFile: "body.md"
prerelease: ${{needs.build.outputs.npm_tag_ios != 'latest' && needs.build.outputs.npm_tag_macos != 'latest'}}
allowUpdates: true
17 changes: 9 additions & 8 deletions .github/workflows/npm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,19 @@ jobs:
fi
- name: Get Current Version
run: |
NPM_VERSION=$(node -e "console.log(require('./package.json').version);")
NPM_VERSION=$(node -e "console.log(require('./packages/ios/package.json').version);")
echo NPM_VERSION=$NPM_VERSION >> $GITHUB_ENV
- name: Bump version for dev release
if: ${{ !contains(github.ref, 'refs/tags/') }}
run: |
NPM_VERSION=$(node ./scripts/get-next-version.js root)
NPM_VERSION=$(node ./scripts/get-next-version.js ios)
echo NPM_VERSION=$NPM_VERSION >> $GITHUB_ENV
cd packages/ios
npm version $NPM_VERSION --no-git-tag-version
- name: Output NPM Version and tag
id: npm_version_output
run: |
NPM_TAG=$(node ./scripts/get-npm-tag.js root)
NPM_TAG=$(node ./scripts/get-npm-tag.js ios)
echo NPM_VERSION=$NPM_VERSION >> $GITHUB_OUTPUT
echo NPM_TAG=$NPM_TAG >> $GITHUB_OUTPUT
- name: Build
Expand All @@ -75,7 +76,7 @@ jobs:
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: npm-package
path: dist/nativescript-ios-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
path: packages/ios/dist/nativescript-ios-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
- name: Upload dSYMs artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
Expand Down Expand Up @@ -171,7 +172,7 @@ jobs:
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: npm-package
path: dist
path: packages/ios/dist
- name: Update npm (required for OIDC trusted publishing)
run: |
npm install -g npm@^11.5.1
Expand All @@ -184,15 +185,15 @@ jobs:
if [ -n "${NPM_CONFIG_USERCONFIG:-}" ]; then
rm -f "$NPM_CONFIG_USERCONFIG"
fi
npm publish ./dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
npm publish ./packages/ios/dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
env:
NODE_AUTH_TOKEN: ""

- name: Publish package (granular token)
if: ${{ vars.USE_NPM_TOKEN == 'true' }}
run: |
echo "Publishing @nativescript/ios@$NPM_VERSION to NPM with tag $NPM_TAG via granular token..."
npm publish ./dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
npm publish ./packages/ios/dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
github-release:
Expand Down Expand Up @@ -234,7 +235,7 @@ jobs:
run: npx conventional-changelog -p angular -r2 > body.md
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
with:
artifacts: "dist/nativescript-ios-*.tgz,dist/dSYMs/*.zip"
artifacts: "packages/ios/dist/nativescript-ios-*.tgz,dist/dSYMs/*.zip"
bodyFile: "body.md"
prerelease: ${{needs.build.outputs.npm_tag != 'latest'}}
allowUpdates: true
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ v8_build
.cipd/

# project template
/project-template-ios/.build_env_vars.sh
/project-template-ios/__PROJECT_NAME__.xcodeproj/project.xcworkspace/xcshareddata/
/project-template-vision/.build_env_vars.sh
/project-template-vision/__PROJECT_NAME__.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
/templates/ios/.build_env_vars.sh
/templates/ios/__PROJECT_NAME__.xcodeproj/project.xcworkspace/xcshareddata/
/templates/visionos/.build_env_vars.sh
/templates/visionos/__PROJECT_NAME__.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

.cache/

Expand Down
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

40 changes: 0 additions & 40 deletions AppWithModules/Frameworks/TNSWidgets.xcframework/Info.plist

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading