Skip to content

Commit

Permalink
chore: use semantic release to publish to NPM (#172)
Browse files Browse the repository at this point in the history
* chore: use semantic release to publish to NPM

* only release from master branch

* fix package lock file
  • Loading branch information
bahmutov authored Jan 8, 2019
1 parent 8729d51 commit deb0e33
Show file tree
Hide file tree
Showing 4 changed files with 5,177 additions and 704 deletions.
6 changes: 1 addition & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ This repo is required by the [example](https://github.com/cypress-io/cypress/tre

## Deployment

1. After making changes to this repo, you need to run the command below. The releaser will prompt you and ask what version to bump the package to.

```bash
npm run release
```
1. After landing commits with features or fixes, new versions of this NPM package are published automatically using `semantic-release`.

2. Now the [example](https://github.com/cypress-io/cypress/tree/develop/packages/example) package in Cypress' main code base must be updated. [Follow these instructions](https://github.com/cypress-io/cypress/blob/develop/packages/example/README.md#updating-the-example-app) to update the `example` app.
29 changes: 23 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
version: 2.1
orbs:
# use Cypress orb from CircleCI registry
cypress: cypress-io/[email protected]
cypress: cypress-io/[email protected]

jobs:
release:
executor: cypress/base-10
steps:
- attach_workspace:
at: ~/
- run: npm run semantic-release

workflows:
build:
jobs:
Expand All @@ -27,11 +36,11 @@ workflows:
# installed by the "install" job
requires:
- cypress/install
record: true # record results on Cypress dashboard
parallel: true # load balance all tests
parallelism: 3 # across 3 machines
group: '3x-electron' # name this group
start: 'npm start' # start server before running tests
record: true # record results on Cypress dashboard
parallel: true # load balance all tests
parallelism: 3 # across 3 machines
group: '3x-electron' # name this group
start: 'npm start' # start server before running tests

# run on 2 machines using Chrome browser
- cypress/run:
Expand All @@ -49,3 +58,11 @@ workflows:
parallelism: 2
group: '2x-chrome'
start: 'npm start'

- release:
filters:
branches:
only:
- master
requires:
- 3 machines
Loading

0 comments on commit deb0e33

Please sign in to comment.