apm-agent-nodejs icon indicating copy to clipboard operation
apm-agent-nodejs copied to clipboard

3.x release process publishes to npm with "latest" dist-tag, not "latest-3" dist-tag

Open trentm opened this issue 1 year ago • 1 comments

The recent 3.52.2 release took the "latest" npm dist-tag. That's wrong. "latest" should always be the current main release branch (currently 4.x), else latest-$major.

trentm avatar Nov 05 '24 17:11 trentm

I accidentally blew this away in the other updates to the release.yml workflow in #4304

       - name: npm publish
         run: |-
-          echo "//registry.npmjs.org/:_authToken=${{ env.NPMJS_TOKEN }}" > .npmrc
-          npm publish --tag="latest-3" --otp=${{ env.TOTP_CODE }}
+          echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
+          npm publish --provenance

trentm avatar Nov 05 '24 17:11 trentm