mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(nx-cloud): organize workspace caching with improved input/outputs (#10734)
This commit is contained in:
13
.github/workflows/apps_automated_android.yml
vendored
13
.github/workflows/apps_automated_android.yml
vendored
@@ -8,6 +8,9 @@ on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -19,10 +22,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 23.5.0
|
||||
|
||||
- name: Derive appropriate SHAs for base and head for `nx affected` commands
|
||||
uses: nrwl/nx-set-shas@v4
|
||||
with:
|
||||
main-branch-name: 'main'
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
@@ -36,7 +45,7 @@ jobs:
|
||||
- name: Install NativeScript
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip six
|
||||
npm i -g nativescript --ignore-scripts --legacy-peer-deps
|
||||
npm i -g nativescript --ignore-scripts
|
||||
ns usage-reporting disable
|
||||
ns error-reporting disable
|
||||
|
||||
@@ -57,4 +66,4 @@ jobs:
|
||||
with:
|
||||
api-level: 34
|
||||
arch: x86_64
|
||||
script: node tools/scripts/run-automated.js android
|
||||
script: npx nx test apps-automated -c=android
|
||||
|
||||
12
.github/workflows/apps_automated_ios.yml
vendored
12
.github/workflows/apps_automated_ios.yml
vendored
@@ -8,6 +8,9 @@ on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -27,9 +30,14 @@ jobs:
|
||||
with:
|
||||
node-version: 23.5.0
|
||||
|
||||
- name: Derive appropriate SHAs for base and head for `nx affected` commands
|
||||
uses: nrwl/nx-set-shas@v4
|
||||
with:
|
||||
main-branch-name: 'main'
|
||||
|
||||
- name: Install NativeScript
|
||||
run: |
|
||||
npm i -g nativescript --ignore-scripts --legacy-peer-deps
|
||||
npm i -g nativescript --ignore-scripts
|
||||
ns usage-reporting disable
|
||||
ns error-reporting disable
|
||||
# ns doctor
|
||||
@@ -47,4 +55,4 @@ jobs:
|
||||
os_version: '17.5'
|
||||
|
||||
- name: Run tests on iOS Simulator
|
||||
run: node tools/scripts/run-automated.js ios
|
||||
run: npx nx test apps-automated -c=ios
|
||||
|
||||
6
.github/workflows/npm_release_core.yml
vendored
6
.github/workflows/npm_release_core.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
env:
|
||||
NPM_TAG: 'next'
|
||||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -20,6 +21,11 @@ jobs:
|
||||
- name: Setup
|
||||
run: npm run setup
|
||||
|
||||
- name: Derive appropriate SHAs for base and head for `nx affected` commands
|
||||
uses: nrwl/nx-set-shas@v4
|
||||
with:
|
||||
main-branch-name: 'main'
|
||||
|
||||
- name: Generate Version
|
||||
working-directory: packages/core
|
||||
run: |
|
||||
|
||||
2
.github/workflows/npm_release_tns_core.yml
vendored
2
.github/workflows/npm_release_tns_core.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup
|
||||
run: npm install --legacy-peer-deps
|
||||
run: npm install
|
||||
|
||||
- name: Generate Version
|
||||
run: |
|
||||
|
||||
6
.github/workflows/npm_release_webpack.yml
vendored
6
.github/workflows/npm_release_webpack.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup
|
||||
run: npm install --legacy-peer-deps
|
||||
run: npm install
|
||||
|
||||
- name: Generate Version
|
||||
working-directory: packages/webpack
|
||||
@@ -32,10 +32,10 @@ jobs:
|
||||
run: npx nx run webpack:build
|
||||
|
||||
- name: Publish @nativescript/webpack
|
||||
working-directory: dist/packages
|
||||
working-directory: dist/packages/webpack5
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
run: |
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ../../.npmrc
|
||||
echo "Publishing @nativescript/webpack@$NPM_VERSION to NPM with tag $NPM_TAG..."
|
||||
npm publish nativescript-webpack.tgz --tag $NPM_TAG --dry-run
|
||||
npm publish --tag $NPM_TAG --dry-run
|
||||
|
||||
Reference in New Issue
Block a user