Skip to content

Commit

Permalink
feat: add make action for npm auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Dec 13, 2022
1 parent 6db3f30 commit 31aa1e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NPM_TOKEN=npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ build/

# Jest folder of detailed test coverage
coverage/

# Environment
.env
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-include .env

# BuildKit enables higher performance docker builds and caching possibility
# to decrease build times and increase productivity for free.
export DOCKER_BUILDKIT ?= 1
Expand Down Expand Up @@ -84,6 +86,10 @@ purge:
rm -rf .pnpm-store node_modules pnpm-lock.yaml
.PHONY: purge

login:
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
.PHONY: login


# Testing and Code Quality
# ------------------------------------------------------------------------------------
Expand Down

0 comments on commit 31aa1e8

Please sign in to comment.