feat: added npm token for agent
This commit is contained in:
parent
060b1b7f7b
commit
26546c1899
1 changed files with 26 additions and 24 deletions
50
.github/workflows/bp-devtools-ci.yml
vendored
50
.github/workflows/bp-devtools-ci.yml
vendored
|
|
@ -1,31 +1,33 @@
|
||||||
name: BP DEVTOOLS CI
|
name: BP DEVTOOLS CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Nx Cloud - Main Job
|
name: Nx Cloud - Main Job
|
||||||
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
|
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
|
||||||
with:
|
with:
|
||||||
main-branch-name: main
|
main-branch-name: main
|
||||||
number-of-agents: 3
|
number-of-agents: 3
|
||||||
init-commands: |
|
init-commands: |
|
||||||
npx nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
|
npx nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
|
||||||
parallel-commands: |
|
parallel-commands: |
|
||||||
npx nx-cloud record -- npx nx format:check
|
npx nx-cloud record -- npx nx format:check
|
||||||
parallel-commands-on-agents: |
|
parallel-commands-on-agents: |
|
||||||
npx nx affected --target=lint --parallel=3
|
npx nx affected --target=lint --parallel=3
|
||||||
npx nx affected --target=test --parallel=3 --ci --code-coverage
|
npx nx affected --target=test --parallel=3 --ci --code-coverage
|
||||||
npx nx affected --target=build --parallel=3
|
npx nx affected --target=build --parallel=3
|
||||||
|
|
||||||
agents:
|
agents:
|
||||||
name: Nx Cloud - Agents
|
name: Nx Cloud - Agents
|
||||||
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
|
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
|
||||||
with:
|
secrets:
|
||||||
number-of-agents: 3
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
with:
|
||||||
|
number-of-agents: 3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue