Skip to content

Commit

Permalink
Merge pull request #42 from globality-corp/update-circleci
Browse files Browse the repository at this point in the history
update-circleci
  • Loading branch information
iaguilarmartin-globality committed May 14, 2021
2 parents 43b7336 + 547e520 commit 2abcc61
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 16 deletions.
51 changes: 36 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:14.15.4
- image: circleci/node:14.16.1

whitelist: &whitelist
paths:
.
paths: .

version: 2
jobs:
Expand Down Expand Up @@ -90,7 +89,7 @@ jobs:
sed -i '/version/s/[^.]*$/'"0-dev${CIRCLE_BUILD_NUM}\",/" package.json
npm publish
deploy:
publish_library_to_npmjs:
<<: *defaults

steps:
Expand All @@ -101,49 +100,61 @@ jobs:
name: Publish to NPM
command: npm publish

publish_library_to_jfrog:
<<: *defaults

steps:
- attach_workspace:
at: ~/repo

- run:
name: Publish to JFrog
command: |
echo "Not publishing package to JFrog"
workflows:
version: 2

build:
jobs:
- checkout:
context:
- Globality-Common
- Globality-Common
- lint:
context:
- Globality-Common
- Globality-Common
requires:
- checkout
- test:
context:
- Globality-Common
- Globality-Common
requires:
- checkout
- build:
context:
- Globality-Common
- Globality-Common
requires:
- lint
- test
- deploy_rc:
context:
- Globality-Common
- Globality-Common
requires:
- build

release:
jobs:
- checkout:
context:
- Globality-Common
- Globality-Common
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
- lint:
context:
- Globality-Common
- Globality-Common
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
Expand All @@ -153,7 +164,7 @@ workflows:
- checkout
- test:
context:
- Globality-Common
- Globality-Common
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
Expand All @@ -163,17 +174,27 @@ workflows:
- checkout
- build:
context:
- Globality-Common
- Globality-Common
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
requires:
- test
- deploy:
- publish_library_to_npmjs:
context:
- Globality-Common
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
requires:
- build
- publish_library_to_jfrog:
context:
- Globality-Common
- Globality-Common
filters:
tags:
only: /[0-9]+(\.[0-9]+)*/
Expand Down
2 changes: 1 addition & 1 deletion .globality/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"open_source": true
},
"type": "node-module",
"version": "2021.3.1"
"version": "2021.19.1"
}

0 comments on commit 2abcc61

Please sign in to comment.