- Register an account at https://www.npmjs.com/
- Generate a token, choose read and publish
- Copy the token and go to Github settings - Secrets
- Name it say as NPM_AUTH_TOKEN
- You will need this code for setting up the workflow
- Go to Actions, set up a new workflow
- I chose a suggested "Publish Node.js Package"
- Deleted npm test because in package.json my script was "test": "echo "Error: no test specified" && exit 1", which will disrupt the workflow
- Input NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} in the workflow
- on: push: paths: 'package.json'
devops_5jul
1.0.1 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i devops_5jul
Repository
Weekly Downloads
1
Version
1.0.1
License
ISC
Unpacked Size
6.46 kB
Total Files
8