Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action to release on NPM #409

Merged
merged 2 commits into from Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -39,3 +39,10 @@ jobs:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create an NPM release
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
yarn publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -60,7 +60,8 @@
"bundle": "lerna run bundle",
"test": "lerna run --concurrency 1 test",
"clean": "lerna run --parallel clean && lerna clean --yes && rimraf node_modules",
"release": "lerna version"
"release": "lerna version",
"publish": "yarn clean && yarn bootstrap && yarn build && yarn bundle && lerna publish from-packages --ignore-scripts --yes"
},
"devDependencies": {
"@cliqz/metalint": "^0.2.0",
Expand Down