feat(nx-cloud): organize workspace caching with improved input/outputs (#10734)

This commit is contained in:
Nathan Walker
2025-04-29 13:25:39 -07:00
committed by GitHub
parent 2ad5daf7f8
commit 61a83a60c9
27 changed files with 2202 additions and 73 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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: |

View File

@@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- name: Setup
run: npm install --legacy-peer-deps
run: npm install
- name: Generate Version
run: |

View File

@@ -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