Skip to content

chore(monorepo): Add Github action for set npm token#2

Merged
alejandroruizponce merged 1 commit intomainfrom
alejandroruiz/add-github-actions
Feb 5, 2026
Merged

chore(monorepo): Add Github action for set npm token#2
alejandroruizponce merged 1 commit intomainfrom
alejandroruiz/add-github-actions

Conversation

@alejandroruizponce
Copy link
Contributor

This pull request introduces a new custom GitHub Action for securely setting an npm publish token in the .npmrc configuration file, enabling automated publishing workflows. The action is defined with a YAML metadata file and implemented in JavaScript.

New GitHub Action for npm Token Management:

  • Added .github/actions/set-npm-token/action.yml to define the action's metadata, including its name, description, required input (npm-token), and execution environment.
  • Implemented .github/actions/set-npm-token/main.js to read the npm token input, write it securely to the project's .npmrc file, and ensure npm lifecycle scripts can run as root. The script handles missing tokens and reports errors using GitHub Actions tooling.

@alejandroruizponce alejandroruizponce merged commit f989a1b into main Feb 5, 2026
2 checks passed
@alejandroruizponce alejandroruizponce deleted the alejandroruiz/add-github-actions branch February 5, 2026 09:30
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants