ci: update permissions #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
main: | |
name: Nx Cloud | |
permissions: | |
id-token: write | |
contents: write | |
actions: read | |
uses: nrwl/ci/.github/workflows/[email protected] | |
secrets: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
with: | |
pnpm-version: 8.11 | |
node-version: 20.10.0 | |
number-of-agents: 3 | |
main-branch-name: 'main' | |
init-commands: | | |
npx nx-cloud record -- pnpm exec prettier . --ignore-path .ci.prettierignore --check | |
parallel-commands-on-agents: | | |
pnpm exec nx run-many --target=lint --parallel=3 | |
pnpm exec nx run-many --target=build --parallel=3 | |
agents: | |
name: Nx Cloud - Agents | |
uses: nrwl/ci/.github/workflows/[email protected] | |
secrets: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
with: | |
number-of-agents: 3 | |
pnpm-version: 8.11 | |
node-version: 20.10.0 |