Skip to content

Commit

Permalink
fix: add build step to buildAndDeploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyBrobston committed Jan 31, 2020
1 parent 98ad467 commit 8c3c174
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .scripts/buildAndDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ setup_git_config() {
echo "https://${GITHUB_API_KEY}:@github.com" > .git/credentials
}

build_lib() {
yarn build
}

create_npm_version_and_publish() {
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc

Expand All @@ -24,5 +28,6 @@ push_version_update_to_git() {
}

setup_git_config
build_lib
create_npm_version_and_publish
push_version_update_to_git
push_version_update_to_git
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"lint:ts": "tslint --fix -c tslint.json 'src/**/*.ts' 'tests/**/*.test.ts'",
"postversion": "git push && git push --tags",
"test": "yarn lint:ts && yarn coverage && yarn acceptance",
"unit": "npx jest",
"version": "yarn build && git add ."
"unit": "npx jest"
},
"keywords": [
"javascript",
Expand Down

0 comments on commit 8c3c174

Please sign in to comment.