This action runs npx nx commands with automatic fallback to --no-cloud if
they fail.
jobs:
job_id:
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
...
- name: Run CI on affected projects
uses: robsonos/nx-cloud-skipper-action
with:
command: affected -t lint test buildThe above will run npx nx affected -t lint test build and if the default
errorMessages are found in the log it will run
npx nx affected -t lint test build --no-cloud
| Name | Description | Required | Default |
|---|---|---|---|
command |
Arguments to pass to npx nx (e.g., affected -t lint test build) |
true | |
errorMessages |
Set the NX_BASE environment variable (optional) | false | Workspace is unable to be authorizedexceeding the FREE plan |
| Name | Description |
|---|---|
status |
Status of the action (success/failure) |