Skip to content

Commit

Permalink
fix npx & ci
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jun 10, 2019
1 parent 3d3be99 commit 5351de0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
script:
- echo "NPM Deploying Started ..."
- npm version
- ./scripts/package-publish-config-tag-latest.sh
- bash -x ./scripts/package-publish-config-tag-latest.sh
- npm run dist
- echo "NPM Building Finished."

Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@
},
"devDependencies": {
"@chatie/eslint-config": "^0.5.3",
"@chatie/semver": "^0.4.2",
"@chatie/tsconfig": "^0.6.1",
"@types/shelljs": "^0.8.5",
"pkg-jq": "^0.2.2",
"pkg-up": "^3.1.0",
"shx": "^0.3.2",
"tstest": "^0.2.4"
Expand Down
4 changes: 2 additions & 2 deletions scripts/package-publish-config-tag-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
set -e

# Bug compatible with -r not supported (we need a raw string)
VERSION=$(ts-node --files bin/pkg-jq -r .version)
VERSION=$(npx pkg-jq -r .version)

if npx semver-is-prod $VERSION; then
if npx --project @chatie/semver semver-is-prod $VERSION; then
npx pkg-jq -i '.publishConfig.tag="latest"'
echo "production release: publicConfig.tag set to latest."
else
Expand Down

0 comments on commit 5351de0

Please sign in to comment.