diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87a058c481..0257d06fd2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/package.json b/package.json index a7b393d912..377370824b 100644 --- a/package.json +++ b/package.json @@ -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",