-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use semantic release to publish to NPM (#172)
* chore: use semantic release to publish to NPM * only release from master branch * fix package lock file
- Loading branch information
Showing
4 changed files
with
5,177 additions
and
704 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
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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -49,3 +58,11 @@ workflows: | |
parallelism: 2 | ||
group: '2x-chrome' | ||
start: 'npm start' | ||
|
||
- release: | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
requires: | ||
- 3 machines |
Oops, something went wrong.