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
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Nx Cloud - Main Job
|
||||
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
|
||||
with:
|
||||
main-branch-name: main
|
||||
number-of-agents: 3
|
||||
init-commands: |
|
||||
npx nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
|
||||
parallel-commands: |
|
||||
npx nx-cloud record -- npx nx format:check
|
||||
parallel-commands-on-agents: |
|
||||
npx nx affected --target=lint --parallel=3
|
||||
npx nx affected --target=test --parallel=3 --ci --code-coverage
|
||||
npx nx affected --target=build --parallel=3
|
||||
main:
|
||||
name: Nx Cloud - Main Job
|
||||
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
|
||||
with:
|
||||
main-branch-name: main
|
||||
number-of-agents: 3
|
||||
init-commands: |
|
||||
npx nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
|
||||
parallel-commands: |
|
||||
npx nx-cloud record -- npx nx format:check
|
||||
parallel-commands-on-agents: |
|
||||
npx nx affected --target=lint --parallel=3
|
||||
npx nx affected --target=test --parallel=3 --ci --code-coverage
|
||||
npx nx affected --target=build --parallel=3
|
||||
|
||||
agents:
|
||||
name: Nx Cloud - Agents
|
||||
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
|
||||
with:
|
||||
number-of-agents: 3
|
||||
agents:
|
||||
name: Nx Cloud - Agents
|
||||
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0
|
||||
secrets:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
with:
|
||||
number-of-agents: 3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue