Skip to content

Commit

Permalink
Chore: fixes package process
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Apr 15, 2021
1 parent 9b9602d commit 364e26b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[
"@semantic-release/github", {
"assets": [
{ "path": "*.tgz" }
{ "path": "*.tgz", "label": "version, uploaded to npm" }
]
}
]
Expand Down
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
deploy:
provider: script
skip_cleanup: true
script:
- ./bin/pack.sh
- npx semantic-release
script: npm run semantic-release
notifications:
email:
recipients: dipustovit@gmail.com
Expand Down
3 changes: 2 additions & 1 deletion bin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
rm -rf tmp/package
PACKAGE="$(npm pack 2>&1 | tail -1)"
mkdir -p tmp
tar -xvzf $PACKAGE -C tmp
tar -xvzf $PACKAGE -C tmp
mv $PACKAGE ${PACKAGE/-0.0.1/}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:coverage": "BUILD=0 MODE=test nyc mocha --config .mocharc.json tests/**/*test.js",
"coverage-check": "MODE=test nyc check-coverage",
"test": "npm run test:lint && npm run test:security && BUILD=1 npm run test:mocha",
"semantic-release": "semantic-release"
"semantic-release": "./bin/pack.sh && npx semantic-release"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,7 +62,7 @@
"husky": "^6.0.0",
"mocha": "^6.2.3",
"nyc": "^14.1.1",
"semantic-release": "^15.13.19",
"semantic-release": "^17.4.2",
"uuid": "^3.3.2"
}
}

0 comments on commit 364e26b

Please sign in to comment.