/npm

GitHub Action to publish your project to npm

Primary LanguageShell

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