Skip to content
package

GitHub Action

bevry-actions/npm

v1.1.7 Latest version

bevry-actions/npm

package

bevry-actions/npm

GitHub Action to publish your project to npm

Installation

Copy and paste the following snippet into your .yml file.

              

- name: bevry-actions/npm

uses: bevry-actions/[email protected]

Learn more about this action in bevry-actions/npm

Choose a version

bevry-actions/npm

Once your tests succeed, use this action to deploy to npm for each new git release, as well as optionally for each new git commit to specific branches, to an npm tag.

Example

For instance, for the ambi project, you can get Deno compile target for the latest stable release via:

https://unpkg.com/ambi/edition-deno/index.ts

Or for the latest commit via:

https://unpkg.com/ambi@next/edition-deno/index.ts

Install

And add the following to your GitHub Action workflow after your tests have completed and you have built your compile targets/documentation.

- name: publish to npm
  uses: bevry-actions/npm@main
  with:
      npmAuthToken: ${{secrets.NPM_AUTH_TOKEN}}
      npmBranchTag: "master:next" # optional

License

Public Domain via The Unlicense