Skip to content

Conversation

@Cordobo
Copy link
Owner

@Cordobo Cordobo commented Nov 29, 2025

Implements a cooldown period to prevent too-frequent npm package publishes:

  • Adds cooldown check before publishing (24-hour minimum between publishes)
  • Fails gracefully with clear message showing time remaining if cooldown active
  • Updates timestamp after successful publish using GitHub repository variables
  • Uses LAST_NPM_PUBLISH_TIME variable to track last publish time

The workflow will now:

  1. Check if 24 hours have passed since last publish
  2. Display time remaining if cooldown still active
  3. Proceed with normal publish if cooldown expired
  4. Update timestamp after successful publish

Implements a cooldown period to prevent too-frequent npm package publishes:

- Adds cooldown check before publishing (24-hour minimum between publishes)
- Fails gracefully with clear message showing time remaining if cooldown active
- Updates timestamp after successful publish using GitHub repository variables
- Uses LAST_NPM_PUBLISH_TIME variable to track last publish time

The workflow will now:
1. Check if 24 hours have passed since last publish
2. Display time remaining if cooldown still active
3. Proceed with normal publish if cooldown expired
4. Update timestamp after successful publish
@Cordobo Cordobo self-assigned this Nov 29, 2025
@Cordobo Cordobo marked this pull request as ready for review November 29, 2025 02:07
The actions/setup-node action already handles npm authentication
automatically when registry-url is configured, so the explicit
NODE_AUTH_TOKEN environment variable is redundant.
@Cordobo Cordobo merged commit 4a807ef into main Nov 29, 2025
1 check failed
@Cordobo Cordobo deleted the claude/add-npm-publish-cooldown-01Ekm9s2rYQ3FaVNTooEN26G branch November 29, 2025 02:44
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.

3 participants