Skip to content

Commit

Permalink
Must tag always from master branch and use the 'Production' context
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocarneiro committed Nov 23, 2018
1 parent 06b76f7 commit a695d0f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
20 changes: 17 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,34 @@ jobs:
release_rc:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}-{{checksum "package-lock.json"}}

- run: sudo npm install -g npm
- run: npm ci

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}-{{checksum "package-lock.json"}}

- run:
name: run tests incl coverage
command: npm run test
- run: npm run lint
- run: npm run build

- run:
name: git config
command: |
git config credential.helper 'cache --timeout=120'
git config user.email "no-reply@civic.com"
git config user.name "CI Deployer"
git config --global push.default simple
git branch --set-upstream-to origin/master
- run:
name: version
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"build:browser:clean": "rimraf dist/prebrowser",
"build:browser": "npm run build:browser:before && npm run build:browser:after && npm run build:browser:clean",
"build": "npm run build:browser && npm run build:cjs && npm run build:es",
"postversion": "git add --all && git commit -m\"build and version $npm_package_version\" -m\"[skip ci]\" && git push",
"postversion": "git add --all && git commit -m\"build and version $npm_package_version\" -m\"[skip ci]\" && git push origin master",
"pretag": "git fetch --tags",
"tag": "git tag v$npm_package_version && git push origin --tags",
"tag": "git tag v$npm_package_version && git push --tags origin master",
"precommit": "npm run lint"
},
"devDependencies": {
Expand Down

0 comments on commit a695d0f

Please sign in to comment.