Skip to content

Conversation

hectoruch
Copy link
Collaborator

Fix shell syntax error in auto-publish workflow git configuration

  • Fix typo: change 'thenn' to 'then' in conditional statement
  • Correct shell script syntax for RELEASE_TOKEN authentication setup
  • Maintain proper conditional logic for branch protection bypass

This resolves the "syntax error near unexpected token 'else'" error
that was preventing the workflow from executing the git configuration step.

@hectoruch hectoruch merged commit 93dafb5 into main Oct 10, 2025
@hectoruch hectoruch deleted the fix/conditional-token-actions branch October 10, 2025 04:07
Copy link

❌ Auto-publish Failed

The automatic publication process failed. Please check the workflow logs for details.

🔧 Common Solutions

  • NPM Token: Verify NPM_TOKEN is valid and has publish permissions
  • Release Token: Add RELEASE_TOKEN secret to bypass branch protection rules
  • Token Permissions: Check that tokens have correct permissions
  • Version Conflict: Check if version already exists in NPM
  • Build Issues: Ensure all tests pass locally and build completes successfully

🔐 Required Secrets Configuration

  1. NPM_TOKEN:

    • Type: "Automation" token from npmjs.com
    • Scope: Access to publish the package
  2. RELEASE_TOKEN (Required for protected branches):

    • Type: Personal Access Token with bypass permissions
    • Permissions: "Contents: write", "Pull requests: write"
    • Special: "Bypass pull request requirements" if needed

📞 Next Steps

  1. NPM Issues: Verify NPM_TOKEN is an automation token
  2. Branch Protection: Add RELEASE_TOKEN secret with bypass permissions
  3. Logs: Check error logs for specific authentication issues
  4. Manual Process: Create a new PR if tokens can't be configured

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant