diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f9f5f7..288ec3d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,8 +61,10 @@ jobs: - name: Publish if: github.event_name == 'push' && github.ref == 'refs/heads/main' - run: HUSKY_SKIP_HOOKS=1 npx lerna publish --yes + run: HUSKY_SKIP_HOOKS=1 npx lerna publish from-package --yes env: - NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} + NPMJS_TOKEN: ${{ secrets.NPMJS_TOKEN }} + NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }} diff --git a/lerna.json b/lerna.json index 9e9509f..90f9b9b 100644 --- a/lerna.json +++ b/lerna.json @@ -5,7 +5,7 @@ "changelogPreset": "angular", "command": { "version": { - "createRelease": "github", + "createRelease": "npm", "conventionalCommits": true, "allowBranch": ["main"], "message": "chore(release): publish"