Skip to content

Lostmyname/product-package-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product NPM package publisher

This Action creates an NPM package of the project is run into and publishes it to the registry using the appropriate versioning.

Certain files that are relevant to package installation and distribution are always included in the package. For example, package.json, README.md, LICENSE, and so on.

If there is a "files" list in package.json, then only the files specified will be included. (If directories are specified, then they will be walked recursively and their contents included, subject to the same ignore rules.)

If the action is triggered by a push event on the master branch, it creates a latest version and it publishes it to the NPM Github registry for Lostmyname.

If the action is triggered by a pull request event on a remote branch which is in development, it creates a prerelease version and it publishes it to the NPM Github registry for Lostmyname.

Inputs

user_email

REQUIRED The GitHub user email associated with the NPM auth token

user_name

REQUIRED The GitHub user name associated with the NPM auth token

github_ref

The branch the action is running on. Used conditionally to define the package versioning.

github_event_action

The event type [open, synchronize] that triggers the build if the event is a pull request. Used conditionally to define the package versioning.

Env

MUSE_NPM_AUTH_TOKEN

REQUIRED The NPM github registry auth token.

Example usage

- uses: Lostmyname/product-package-publisher
  env:
    NPM_AUTH_TOKEN: 'my-npm-auth-token'
  with:
    user_email: 'user@example.com'
    user_name: 'user-name'
    github_ref: ${{ github.ref }}
    github_event_action: ${{ github.event.action }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published