feat: add semantic release configuration and GitHub Actions workflow - #18
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ 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".
| - name: Run Semantic Release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: npx semantic-release |
There was a problem hiding this comment.
GitHub release job missing Gitea token required by config
The GitHub Actions release job only exports GITHUB_TOKEN and NPM_TOKEN (lines 25‑28), but .releaserc.json enables the Gitea publisher (@saithodev/semantic-release-gitea, lines 19‑25). When this workflow runs, semantic-release will load that plugin and fail early because no GITEA_TOKEN is present, so the release job cannot succeed. Add the GITEA_TOKEN secret to the job env or conditionally disable the Gitea plugin when running on GitHub.
Useful? React with 👍 / 👎.
| - name: Run Semantic Release | ||
| env: | ||
| GITEA_TOKEN: ${{ secrets.GITEATOKEN }} # IMPORTANT | ||
| GIT_AUTHOR_NAME: "Semantic Release Bot" | ||
| GIT_AUTHOR_EMAIL: "bot@stralya.com" | ||
| GIT_COMMITTER_NAME: "Semantic Release Bot" | ||
| GIT_COMMITTER_EMAIL: "bot@stralya.com" | ||
| run: | |
There was a problem hiding this comment.
Gitea release job lacks GitHub token for configured plugin
The Gitea workflow sets up only GITEA_TOKEN and git author info (lines 25‑32), yet .releaserc.json also includes the GitHub publisher @semantic-release/github (lines 19‑20). Running semantic-release here will call the GitHub plugin, which requires GITHUB_TOKEN/GH_TOKEN; without it the job will error before publishing. Provide a GitHub token in this workflow or gate that plugin when running on Gitea.
Useful? React with 👍 / 👎.
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.