-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from digital-asset/publish-package
Publish package
- Loading branch information
Showing
5 changed files
with
376 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
version: 2.1 | ||
orbs: | ||
node: circleci/[email protected] | ||
jobs: | ||
test: | ||
executor: | ||
name: node/default | ||
|
||
commands: | ||
test_steps: | ||
steps: | ||
- checkout | ||
- node/install-packages: | ||
|
@@ -13,7 +12,43 @@ jobs: | |
command: yarn test | ||
name: Run tests via yarn | ||
|
||
jobs: | ||
test: | ||
executor: | ||
name: node/default | ||
steps: | ||
- test_steps | ||
|
||
test_build_and_publish: | ||
executor: | ||
name: node/default | ||
steps: | ||
- test_steps | ||
- run: | ||
command: yarn build | ||
name: Compile TS to JS | ||
- run: | ||
name: Authenticate with registry | ||
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc | ||
- run: | ||
name: Publish package | ||
command: npm publish --access public | ||
|
||
workflows: | ||
test_my_app: | ||
jobs: | ||
- test | ||
- test: | ||
filters: | ||
tags: | ||
ignore: /^v.*/ | ||
|
||
publish: | ||
jobs: | ||
- test_build_and_publish: | ||
context: | ||
- npm-automation | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.