Skip to content

Commit

Permalink
feat(FEAR-95): Publish the package to npm and GitHub registries
Browse files Browse the repository at this point in the history
  • Loading branch information
LexSwed committed May 25, 2020
1 parent dea3649 commit fcba676
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"successCmd": "yarn run publish:github"
}
],
"@semantic-release/git",
"@semantic-release/github"
]
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@
"copy:demo": "yarn copyfiles -f demo/* dist",
"build": "yarn run dist && yarn run lib && yarn run copy",
"dist": "yarn run clean:dist && yarn webpack --config webpack.config.dist.js",
"lib": "yarn run clean:lib && yarn webpack --config webpack.config.lib.js"
"lib": "yarn run clean:lib && yarn webpack --config webpack.config.lib.js",
"publish:github": "npm config set '//npm.pkg.github.com/:_authToken' $GH_TOKEN && npm publish --registry https://npm.pkg.github.com"
},
"devDependencies": {
"@applitools/eyes-webdriverio": "^5.7.2",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.0.6",
"@semantic-release/npm": "^7.0.5",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,18 @@
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0"
integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==

"@semantic-release/exec@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-5.0.0.tgz#69c253107a755dabf7c262d417269d099f714356"
integrity sha512-t7LWXIvDJQbuGCy2WmMG51WyaGSLTvZBv9INvcI4S0kn+QjnnVVUMhcioIqhb0r3yqqarMzHVcABFug0q0OXjw==
dependencies:
"@semantic-release/error" "^2.1.0"
aggregate-error "^3.0.0"
debug "^4.0.0"
execa "^4.0.0"
lodash "^4.17.4"
parse-json "^5.0.0"

"@semantic-release/git@^9.0.0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-9.0.0.tgz#304c4883c87d095b1faaae93300f1f1e0466e9a5"
Expand Down

0 comments on commit fcba676

Please sign in to comment.