Logo

dev-resources.site

for different kinds of informations.

[Request For Post] Your solution for auto publishing NPM packages?

Published at
3/14/2020
Categories
requestforpost
continousdeployment
Author
jhechtf
Categories
2 categories in total
requestforpost
open
continousdeployment
open
Author
7 person written this
jhechtf
open
[Request For Post] Your solution for auto publishing NPM packages?

Backstory

I recently created an NPM module that while it's not hugely popular, has more downloads than I thought it would. I have a CI/CD setup on my gitlab to lint, test, generate a changelog, and publish.

Three of those jobs work. Take a guess at which 3? That's right, linting, testing, and changelog-ing all work.

All of the places I've found mention of CI/CD with Gitlab and NPM boils down to the following:

  1. Either run npm config set registry //registry.npmjs.org/:_authToken ${NPM_TOKEN} and then running npm publish OR
  2. doing basically the same thing, but instead adding the //registry.npmjs.org/:_authToken=${NPM_TOKEN} to a local .npmrc file.

I've tried both of these on my WSL Ubuntu install. Neither has worked.

I found this Stack Overflow post, and in digging through some links found someone who recommended setting strict-ssl to false. I can't say I'm comfortable with that.

How do YOU do it?

Most of the time my CI/CD stuff pertains to servers, not necessarily NPM modules, so I'm a little out of flavor here. I figure there has to be some way to do this without turning off SSL? I'm holding off on updating my pipeline in the hopes that maybe there's something I missed in all my searching.

requestforpost Article's
30 articles in total
Favicon
know morelinq.com?
Favicon
A high paying Salary excellent job circular . Patient Access Manager
Favicon
Handling Concurrency and Parallelism in PHP Applications: Techniques and Tools
Favicon
How do I complain to Ekart?
Favicon
HTTP Status Code
Favicon
🌟 50+ Stunning Web Development Project Ideas for Beginners 🌟
Favicon
HELP: How the dev.to community works?
Favicon
The mystery behind learning everything fast.
Favicon
Is Technology a Good Career Path in 2025-2030?
Favicon
Why is the realtor not working
Favicon
BITCOIN - ASSETS INVESTMENT RECOVERY WITH TRUST GEEKS HACK EXPERT
Favicon
** Β‘Desvela los secretos de los mΓ©todos HTTP Request con la ayuda de Malcolm el del Medio!Β **πŸ§‘
Favicon
Understanding HTTP DELETE Requests
Favicon
How to get the number of requests from all EC2 instances in python?
Favicon
Which is better? Axios or Fetch?
Favicon
Requests for Go or Terraform Content?
Favicon
Request for topics
Favicon
10 Free Online Resume Builders for professional career
Favicon
Routing Requests in Node Server
Favicon
#Completed Hacktober FEST 2k20!
Favicon
[Request For Post] Your solution for auto publishing NPM packages?
Favicon
Specifying good requirements in Gherkin - BDD
Favicon
9 Helpful Tips For Every Computer Science Student
Favicon
"Haskell for the Front-End" :: Elm vs. PureScript
Favicon
Comprehensive questionaire: Math role in programming
Favicon
Website Wireframing Advice Thread
Favicon
Request for Post: Differences Between React, Angular, and Vue
Favicon
React SSR with PHP and WordPress
Favicon
How can I reduce amount of boilerplate code while working with TypeScript+mongoose πŸ™ˆ
Favicon
Help Me Learn Design Skills!

Featured ones: