Skip to content

Commit

Permalink
attempt to fix npm releases
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed May 10, 2020
1 parent a1baad3 commit bb525aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export PATH := $(PATH):./node_modules/.bin

.PHONY: test docs

SHELL := env "PATH=$(PATH)" /bin/bash
NPM_PUBLISH_TAG := $(shell [[ "$(CIRCLE_TAG)" =~ -[a-z-]+ ]] && echo "pre-release" || echo "latest")
TEST_BROWSER := $(shell [ -z $(TEST_BROWSER) ] && echo "Chrome" || echo ${TEST_BROWSER})

Expand Down Expand Up @@ -53,6 +54,9 @@ build: transpile
docs:
cd docs; jekyll serve build --watch

la:
@echo $(NPM_PUBLISH_TAG)

publish:
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ${HOME}/.npmrc
npm version --no-git-tag-version $(CIRCLE_TAG)
Expand Down

0 comments on commit bb525aa

Please sign in to comment.