Skip to content

Commit 84e6b5e

Browse files
committed
release: Fix for new NodeJS release process
1 parent 3b68314 commit 84e6b5e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

nodejs/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
engine-strict = true
2+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

nodejs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
include ../common/base.mk
22
include $(COMMON)/binding.mk
3+
34
include $(MAKES)/node.mk
45
include $(MAKES)/shell.mk
56

67
NODE-ROOT := $(ROOT)/nodejs
78
export NODE_PATH := $(NODE-ROOT)/lib
89

10+
NPM-TOKEN := \
11+
$(shell ys -e '.npm.token:say' ~/.yamlscript-secrets.yaml 2>/dev/null)
12+
913
#------------------------------------------------------------------------------
1014

1115
build:: build-doc
@@ -20,7 +24,7 @@ update: $(NODE) package.json
2024
npm install
2125

2226
release: $(NODE)
23-
npm publish
27+
NPM_TOKEN=$(NPM-TOKEN) npm publish
2428

2529
clean::
2630
$(RM) package-lock.json strace.txt bad

0 commit comments

Comments
 (0)