Skip to content

Update release workflow: support main, pin Node 22, and add .releaserc.json#8

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

Update release workflow: support main, pin Node 22, and add .releaserc.json#8
mokesano merged 3 commits into
masterfrom
codex/perbaiki-kode-release.yml

Conversation

@mokesano

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the automatic release workflow supports repositories using the main branch in addition to master.
  • Pin Node to a specific version (22) to reduce variability from lts/* across runners.
  • Avoid modifying package.json by not running npm init and not saving dev deps, and centralize semantic-release config into a dedicated .releaserc.json.
  • Limit release artifacts to GitHub releases only by removing the @semantic-release/git plugin.

Description

  • Updated .github/workflows/release.yml to trigger on both main and master branches and kept fetch-depth: 0 for full history in checkout.
  • Changed Node setup from node-version: 'lts/*' to node-version: '22'.
  • Replaced the npm init -y + npm install --save-dev flow with npm install --no-save to avoid altering package.json.
  • Removed @semantic-release/git from the installed plugins and added a step that generates a .releaserc.json containing branches, repositoryUrl, and the plugins list (@semantic-release/commit-analyzer, @semantic-release/release-notes-generator, @semantic-release/github).
  • Kept the final npx semantic-release invocation and ensured GITHUB_TOKEN is provided in the job environment.

Testing

  • No automated CI tests were executed as part of this PR.

Codex Task

@mokesano mokesano merged commit 5cbdab0 into master May 27, 2026
15 checks passed
@mokesano mokesano deleted the codex/perbaiki-kode-release.yml branch May 27, 2026 03:33
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.1 🎉

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.2 🎉

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