auqlue

1.0.3 • Public • Published

ci/cd NPM version

A sample repository containing a dead simple module:

// index.js
module.exports = 42

to show how to publish a NPM package, here called: auqlue.

NB: AUQLUE is the acronym for the "Answer to the Ultimate Question of Life, the Universe, and Everything" which is 42 🙂.

Publish to NPM

Ready to publish a new version to NPM registry?

Manually

  1. bump the package.json version
  2. npm login if not already
  3. npm publish

If successful, you should want to tag the version:

$ git add package.json
$ git commit -m "bump version"
$ git tag v1.0.1
$ git push --tags

Using CI/CD workflow

Pre-requisite:

  1. Generate a NPM token
  2. Set it as NPM_TOKEN secret (in Settings > Secrets and as referenced into cicd.yml file)

Then, to release a new version on npm:

  1. bump the package.json version
  2. then, create a new realese and wait for the ci/cd publish it :)

Readme

Keywords

none

Package Sidebar

Install

npm i auqlue

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

3.51 kB

Total Files

4

Last publish

Collaborators

  • abernier