Skip to content

Commit

Permalink
Chore: use native tarball generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Apr 16, 2021
1 parent 5e0e512 commit eeefda5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/npm",{
"tarballDir": "./"
}
],
[
"@semantic-release/git", {
"assets": ["README.md", "CHANGELOG.md", "package.json"],
Expand All @@ -20,7 +24,7 @@
[
"@semantic-release/github", {
"assets": [
{ "path": "*.tgz", "label": "npm" }
{ "path": "*.tgz", "label": "npm tarblall" }
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion bin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ rm -rf tmp/package
PACKAGE="$(npm pack 2>&1 | tail -1)"
mkdir -p tmp
tar -xvzf $PACKAGE -C tmp
mv $PACKAGE ${PACKAGE/-[0-9.]*.tgz/.tgz}
#mv $PACKAGE ${PACKAGE/-[0-9.]*.tgz/.tgz}
2 changes: 1 addition & 1 deletion 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": "./bin/pack.sh && npx semantic-release"
"semantic-release": "npx semantic-release"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit eeefda5

Please sign in to comment.