Skip to content

Commit 673f667

Browse files
author
Namide
committed
Add publish command to makefile
1 parent b9d7d4a commit 673f667

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,16 @@ cov:
6969
-w /usr/src/app \
7070
-u "node" \
7171
node:slim \
72-
npm run coverage
72+
npm run coverage
73+
74+
publish:
75+
$(MAKE) lint
76+
$(MAKE) cov
77+
$(MAKE) build
78+
docker run -ti --rm \
79+
-u "node" \
80+
-v $(shell pwd):/usr/src/app \
81+
-w /usr/src/app \
82+
-u "node" \
83+
node:slim \
84+
bash -c "npm adduser; npm publish"

0 commit comments

Comments
 (0)