-
Notifications
You must be signed in to change notification settings - Fork 13
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 #43 from snyk/chore/add-semantic-release
Chore/add semantic release
- Loading branch information
Showing
10 changed files
with
74 additions
and
6,348 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,12 +1,52 @@ | ||
version: 2.1 | ||
orbs: | ||
node: circleci/[email protected] | ||
jobs: | ||
build: | ||
executor: node/default | ||
test: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-{{ .Branch }}-{{ .Revision }} | ||
- v1-{{ .Branch }} | ||
- v1- | ||
- checkout | ||
- node/install-packages: | ||
cache-path: ~/project/node_modules | ||
override-ci-command: npm install | ||
- run: | ||
name: Install | ||
command: npm install | ||
- save_cache: | ||
key: v1-{{ .Branch }}-{{ .Revision }} | ||
paths: | ||
- node_modules | ||
- .git | ||
- run: npm run test | ||
|
||
release: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-{{ .Branch }}-{{ .Revision }} | ||
- v1-{{ .Branch }} | ||
- v1- | ||
- checkout | ||
- run: | ||
name: Install | ||
command: npm install | ||
- run: | ||
name: Publish to GitHub | ||
command: npx semantic-release | ||
|
||
workflows: | ||
default_workflow: | ||
jobs: | ||
- test: | ||
context: nodejs-install | ||
- release: | ||
context: nodejs-lib-release | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: | ||
- master |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ dist | |
.idea | ||
coverage | ||
tsc.iml | ||
package-lock.json |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
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.