The automated SonarJS analyzer release publishes the standard SonarQube plugin. SonarQube Server, SonarQube Cloud, and SQAA all consume that same released plugin version; SQAA does not have a separate release artifact.
SQAA is the current name for what older documentation and repository names still call A3S.
- Start
.github/workflows/automated-release.yml. - That workflow orchestrates the release and calls
.github/workflows/release.ymlfor artifact publication. - After the release succeeds,
.github/workflows/bump-versions.ymlopens the next development iteration PR.
The SonarJS workflow is a thin wrapper around
SonarSource/release-github-actions/.github/workflows/automated-release.yml@v1 with SonarJS-specific
inputs:
- project name
SonarJS - plugin name
javascript - Jira project
JS - optional SQC, SQS, and SQAA integration PRs
- SQAA artifact name
js, which maps to thesonar-jsversion insonar-analysis-as-a-service/gradle/sonar-plugins.versions.toml - SLVS, SLVSCODE, SLE, and SLI integration tickets enabled
The reusable workflow performs the following steps:
- Freeze the target branch.
- Run the releasability checks with
SonarSource/gh-action_releasability@v3. - Resolve the release version with
get-release-version. - Resolve the Jira version with
get-jira-version. - Generate Jira-based release notes with
get-jira-release-notesunless explicit notes were provided. - Create the REL Jira ticket with
create-jira-release-ticket. - Publish the GitHub release with
publish-github-release. - Unfreeze the branch.
- Release the Jira version, create the next Jira version, and move the REL ticket to
Technical Release Done. - Create integration tickets.
- Open analyzer update PRs for SQS and SQC.
- When both SQC and SQAA integration are enabled, open a PR in
SonarSource/sonar-analysis-as-a-servicethat updates the fullsonar-jsplugin version.
SonarSource/release-github-actions/publish-github-release is the handoff from orchestration to
artifact publication:
- It creates or reuses a draft GitHub release for the target version.
- It can attach Repox artifacts to that release if artifact paths were provided.
- It inspects
.github/workflows/release.ymland detects that SonarJS uses thegh-action_releasev7 draft-first flow. - It triggers
.github/workflows/release.ymlwithversion=<release-version>anddryRun=<draft flag>. - It waits for that workflow to finish and fails the orchestration run if publication fails.
release.yml publishes the standard analyzer artifacts through
SonarSource/gh-action_release/.github/workflows/[email protected] with:
publishToBinaries: truemavenCentralSync: true- the release version
- the dry-run flag
The reusable workflow follows the v7 draft-first release model:
- Create or reuse the draft GitHub release.
- Run releasability checks again inside the publication workflow.
- Load Vault secrets and execute
./gh-action_release/main. - Publish the release artifacts to the standard release targets.
- Sync Maven Central.
- Publish the draft GitHub release.
- Push release telemetry to Datadog.
Because this is a draft-first flow, failures after the draft release exists are normally retried by rerunning the workflow. Do not create a new release version solely because one publication attempt failed.
SonarJS does not use the generic release-github-actions version bump action. After the automated
release job finishes, SonarJS runs its own reusable workflow:
- Check out the repository.
- Update the root
pom.xml<revision>to${version}-SNAPSHOT. - Open a PR with
peter-evans/create-pull-request@v8titledPrepare next development iteration.
SQAA uses the standard sonar-javascript-plugin artifact.
When sqaa-integration is enabled together with sqc-integration, the shared automated-release
workflow:
- Uses the full released SonarJS version in
X.Y.Z.BuildNumberformat. - Resolves the configured SQAA artifact name
jsto thesonar-jsentry ingradle/sonar-plugins.versions.tomlinSonarSource/sonar-analysis-as-a-service. - Opens a PR that updates that version entry.
After that PR is merged, sonar-analysis-as-a-service resolves the released
org.sonarsource.javascript:sonar-javascript-plugin artifact. The plugin contains the Node.js bridge
used by the SQAA mutualized analysis service, keeping the Java sensor and Node.js bridge on the same
released version.
- Run
.github/workflows/automated-release.yml, usually frommaster. - Monitor the GitHub release publication kicked off through
.github/workflows/release.yml. - Verify the REL ticket and Jira release were updated.
- Verify that the promoted
sonar-javascript-plugin-<version>-cyclonedx.jsonclassifier is present, signed, valid, and containspkg:npmcomponents. - If SQAA integration was enabled, verify that the
sonar-analysis-as-a-servicePR updates only thesonar-jsentry to the full released version. - Merge the
Prepare next development iterationPR. - Merge the SQS, SQC, and SQAA integration PRs created by the release automation.