Skip to content

Update release workflow: support main, enable manual dispatch, generate .releaserc.json, use Node 20#7

Merged
mokesano merged 2 commits into
masterfrom
codex/perbaiki-kode-release.yml
May 27, 2026
Merged

Update release workflow: support main, enable manual dispatch, generate .releaserc.json, use Node 20#7
mokesano merged 2 commits into
masterfrom
codex/perbaiki-kode-release.yml

Conversation

@mokesano

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the release workflow works for repositories using main and allow manual triggers via workflow_dispatch.
  • Use a stable Node version (20) and avoid creating/updating a local package.json by installing packages with --no-save.
  • Centralize semantic-release configuration into a generated .releaserc.json and remove unnecessary @semantic-release/git usage.

Description

  • Added main to the push.branches list and enabled workflow_dispatch to allow manual runs.
  • Updated the Node setup to use node-version: '20' and changed the install step to npm install --no-save instead of initializing a package with npm init -y.
  • Added a step that generates a .releaserc.json with branches, repositoryUrl, and the semantic-release plugins, and removed @semantic-release/git from the installed plugins list.
  • Kept actions/checkout@v4 with fetch-depth: 0 and retained the npx semantic-release execution using the GITHUB_TOKEN environment variable.

Testing

  • No automated tests were added or modified because this change only updates the CI workflow configuration.
  • The updated workflow was not executed as part of this PR, so there are no CI run results to report.

Codex Task

@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

node-version: '20'

P1 Badge Use a supported Node version for semantic-release

With the install step still pulling unpinned semantic-release, this workflow now runs the current release under Node 20; the semantic-release Node version documentation states it requires Node 22.14.0 or higher, so release jobs on main/master will fail before creating tags/releases. The previous lts/* setup would resolve to a supported LTS version, so pinning this to 20 regresses the workflow.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mokesano mokesano merged commit fd52cc5 into master May 27, 2026
15 checks passed
@mokesano mokesano deleted the codex/perbaiki-kode-release.yml branch May 27, 2026 02:24
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant