Skip to content

Commit

Permalink
ci: do not use npx binary (dequelabs#1091)
Browse files Browse the repository at this point in the history
The `npx` package doesn't ship with the version of `npm` we're using (which is 3.x in node v6.12.3). Instead of relying on it, we execute the `standard-version` binary via `npm script` instead.


## Reviewer checks

**Required fields, to be filled out by PR reviewer(s)**
- [x] Follows the commit message policy, appropriate for next version
- [x] Has documentation updated, a DU ticket, or requires no documentation change
- [x] Includes new tests, or was unnecessary
- [x] Code is reviewed for security by: @WilcoFiers
  • Loading branch information
stephenmathieson authored and WilcoFiers committed Aug 22, 2018
1 parent 0dfb915 commit c2d290c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- checkout
- <<: *set_npm_auth
- <<: *restore_dependency_cache
- run: npx standard-version --scripts.prebump=./build/next-version.js --skip.commit=true --skip.tag=true
- run: npm run next-release
- run: npm publish --tag=next

# Release a "production" version
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"prepublishOnly": "grunt build",
"postinstall": "node build/utils/postinstall.js",
"release": "standard-version -a",
"next-release": "standard-version --scripts.prebump=./build/next-version.js --skip.commit=true --skip.tag=true",
"sri-update": "grunt build && node build/sri-update && git add sri-history.json",
"fmt": "prettier --write *.js, **/*.ts '{build,doc,lib,test}/**/*.js'",
"precommit": "lint-staged"
Expand Down

0 comments on commit c2d290c

Please sign in to comment.