MetaMask / action-npm-publish

GitHub Action to publish to NPM
MIT License
8 stars 6 forks source link

Add optional npm-tag parameter to action #30

Closed Mrtenz closed 1 year ago

Mrtenz commented 1 year ago

Description

This pull request adds an optional npm-tag parameter to the npm publish action, which allows customizing the npm tag when publishing a package to the npm registry. By default, the tag is set to "latest".

The npm-tag parameter is optional but can be passed as an argument to the npm publish action when running the CI/CD pipeline. The environment variable YARN_NPM_TAG is then passed to the bash script that publishes the package.

Changes

  1. Add npm-tag parameter to npm publish action.
  2. Use YARN_NPM_TAG environment variable to customize the npm tag parameter passed to the bash script.