Skip to content

fix: resolve release drafter permissions and publish workflow issues - #16

Merged
Zahnentferner merged 2 commits into
AOSSIE-Org:mainfrom
Atharva0506:fix/release-workflow
Aug 3, 2026
Merged

fix: resolve release drafter permissions and publish workflow issues#16
Zahnentferner merged 2 commits into
AOSSIE-Org:mainfrom
Atharva0506:fix/release-workflow

Conversation

@Atharva0506

@Atharva0506 Atharva0506 commented Aug 1, 2026

Copy link
Copy Markdown
Member

Addressed Issues:

Fixes #(issue number)

Description

This PR resolves the GitHub Actions deployment issues for the npm package publish workflow and fixes errors in the Release Drafter configuration.

Key changes include:

  1. Fix "Resource not accessible by integration" Error: Added necessary job-level permissions (contents: write, pull-requests: read) to the release-drafter.yml workflow.
  2. Fix Publish Build Order: In version-release.yml, moved the npm version sync step to execute before the build and npm pack --dry-run steps. This ensures the correct version is packed and validated.
  3. Fix CI Test Failures: Added passWithNoTests: true to vitest.config.ts. Without this, the required npm test step in the publish job would exit with a failure code when no test files exist.
  4. Remove Deprecated Configs: Removed the deprecated include-pre-releases field from .github/release-drafter.yml and cleaned up unnecessary workflow triggers.
  5. Version Bump: Bumped package.json to 1.0.0 to match the VERSION file for the initial public release.

Screenshots/Recordings:

N/A - CI/CD workflow fixes.

Additional Notes:

  • Once merged, Release Drafter should successfully create a draft release on GitHub.
  • Updating the VERSION file on main will correctly trigger the publishing workflow to npm as v1.0.0.
  • Note to maintainers: Please ensure that the NPMJS_TOKEN secret is configured in the repository settings with a valid npm automation token.

Checklist

  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Summary by CodeRabbit

  • Release

    • Updated the package version to 1.0.0.
  • Bug Fixes

    • Improved release publishing to keep package version information synchronized.
    • Test runs now complete successfully when no test files are present.
  • Chores

    • Updated release automation to use the supported branch and permissions configuration.
    • Adjusted pre-release handling in release drafts.

- Add job-level permissions (contents: write, pull-requests: read) to release-drafter workflow to fix 'Resource not accessible by integration' error

- Remove deprecated include-pre-releases field from release-drafter config

- Remove unnecessary master branch and pull_request trigger from release-drafter

- Fix publish job step order: sync version before build so npm pack validates correct version

- Add passWithNoTests to vitest config to prevent CI failure when no test files exist

- Bump package.json version to 1.0.0 to match VERSION file
@github-actions github-actions Bot added no-issue-linked PR is not linked to any issue ci-cd CI/CD pipeline changes configuration Configuration file changes dependencies Dependency file changes github-actions GitHub Actions workflow changes javascript JavaScript/TypeScript code changes labels Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
Messages
📖

⚠️ PR Template Check

These are non-blocking, but please fix:

  • Please replace the placeholder Fixes #(issue number) with the actual issue number (e.g. Fixes #42).

  • Some required checklist items are not completed:

  • My PR addresses a single issue

Generated by 🚫 dangerJS against 913b675

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Atharva0506, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5f34fda1-2605-4376-ac73-0caf09c5a7c5

📥 Commits

Reviewing files that changed from the base of the PR and between 13a9aeb and 913b675.

📒 Files selected for processing (2)
  • .github/release-drafter.yml
  • .github/workflows/release-drafter.yml

Walkthrough

The changes update release-drafter configuration and permissions, synchronize the package version before publishing, set the package version to 1.0.0, and allow Vitest runs without matching test files.

Changes

Release and validation updates

Layer / File(s) Summary
Release-drafter configuration and permissions
.github/release-drafter.yml, .github/workflows/release-drafter.yml
Release-drafter no longer excludes pre-releases. The workflow retains the main and pull-request triggers and declares job-level permissions.
Package version synchronization
.github/workflows/version-release.yml, package.json
The package version is 1.0.0. The publish job updates package.json before building and removes the later synchronization step.
Empty test-run handling
vitest.config.ts
Vitest now succeeds when no test files match.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: Typescript Lang

Poem

A rabbit checks the release gate,
Sets version numbers straight.
No tests found? Vitest can run,
Pre-releases join the fun.
The carrot ships at 1.0.0.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main changes to Release Drafter permissions and the package publishing workflow.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added size/S Small PR (11-50 lines changed) repeat-contributor PR from an external contributor who already had PRs merged needs-review labels Aug 1, 2026

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/release-drafter.yml:
- Line 85: Remove the trailing blank lines at the end of the YAML configuration
so the file ends immediately after its final content and satisfies YAMLlint’s
empty-lines rule.

In @.github/workflows/release-drafter.yml:
- Around line 16-18: Add explanatory comments directly above the job-level
permissions entries in the release-drafter workflow, documenting why contents:
write and pull-requests: read are required. Keep the existing permission values
unchanged and clearly describe their security scope for zizmor auditing.

In `@vitest.config.ts`:
- Line 6: Update the Vitest configuration by removing passWithNoTests: true, or
otherwise configure Vitest to fail when no test files are discovered, so the npm
test check in version-release.yml cannot pass without executing tests.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8af7857b-63f5-426b-8104-9fb760d0faef

📥 Commits

Reviewing files that changed from the base of the PR and between d5d17e7 and 13a9aeb.

📒 Files selected for processing (5)
  • .github/release-drafter.yml
  • .github/workflows/release-drafter.yml
  • .github/workflows/version-release.yml
  • package.json
  • vitest.config.ts
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • AOSSIE-Org/ThruBox-Server (manual)

Comment thread .github/release-drafter.yml Outdated
Comment thread .github/workflows/release-drafter.yml Outdated
Comment thread vitest.config.ts
- Document job-level permissions to address zizmor warning

- Remove trailing blank lines to pass YAML empty-lines rule
@Zahnentferner
Zahnentferner merged commit 60ede21 into AOSSIE-Org:main Aug 3, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI/CD pipeline changes configuration Configuration file changes dependencies Dependency file changes github-actions GitHub Actions workflow changes javascript JavaScript/TypeScript code changes needs-review no-issue-linked PR is not linked to any issue repeat-contributor PR from an external contributor who already had PRs merged size/S Small PR (11-50 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants