actions-publish-test

2.0.16 • Public • Published

actions-publish-test

This is a repo to test how to publish an NPM package with an optional tag when a GitHub release is created.

It uses the package.json version:

package.json version npm version npm tag npm install cmd
"1.0.0" 1.0.0 latest npm i name
"2.0.0-beta" 2.0.0-beta beta npm i name@2.0.0-beta
"2.0.0-beta1" 2.0.0-beta1 beta npm i name@2.0.0-beta1

It should work with any tag, like alpha, beta, rc.

Resources

https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable

Readme

Keywords

none

Package Sidebar

Install

npm i actions-publish-test

Weekly Downloads

0

Version

2.0.16

License

MIT

Unpacked Size

3.11 kB

Total Files

4

Last publish

Collaborators

  • nandito