1.0.3 • Published 4 years ago
auqlue v1.0.3
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
- bump the
package.json
version npm login
if not alreadynpm 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 :)