Skip to content

fix(ci): update release workflow to run on main/master and stabilize Node/npm steps#6

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

fix(ci): update release workflow to run on main/master and stabilize Node/npm steps#6
mokesano merged 2 commits into
masterfrom
codex/perbaiki-kode-release.yml

Conversation

@mokesano

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the release workflow runs on modern default branches by supporting both main and master and allow manual dispatch via workflow_dispatch.
  • Avoid modifying repository state during CI by removing npm init -y and preventing accidental package.json changes.
  • Stabilize CI runtime by pinning Node.js to an explicit version rather than lts/*.

Description

  • Updated .github/workflows/release.yml to trigger on both main and master and added workflow_dispatch for manual runs.
  • Changed Node setup to use node-version: '20' in the actions/setup-node@v4 step.
  • Replaced the runtime npm init -y + npm install --save-dev sequence with a non-persistent npm install --no-save for semantic-release and its plugins.
  • Kept the npx semantic-release execution and ensured GITHUB_TOKEN is supplied via secrets.GITHUB_TOKEN to the job environment.

Testing

  • Ran rg --files -g 'AGENTS.md', which exited non-zero because no AGENTS.md file was found (expected for this repo layout).
  • Ran rg --files .github/workflows && sed -n '1,220p' .github/workflows/release.yml, which succeeded and showed the updated workflow content.
  • Ran git branch --show-current && git remote -v && git symbolic-ref refs/remotes/origin/HEAD, which returned a non-zero exit due to a missing symbolic ref for origin/HEAD in the environment.
  • Validated the applied change with git diff -- .github/workflows/release.yml && nl -ba .github/workflows/release.yml, which succeeded and displayed the final workflow file state.

Codex Task

@mokesano mokesano self-assigned this May 27, 2026
@mokesano mokesano requested a review from archoun May 27, 2026 02:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4784f49cc9

ℹ️ 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".

Comment thread .github/workflows/release.yml Outdated

@archoun archoun left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seharusnya komentar tidak dihapus

@mokesano mokesano merged commit bb0578d into master May 27, 2026
15 checks passed
@mokesano mokesano deleted the codex/perbaiki-kode-release.yml branch May 27, 2026 02:12
@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.

2 participants