diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a97f2e7..d0dc43f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,10 +48,14 @@ jobs: - name: Publish to NPM (next dist-tag) if: inputs.release_type == 'preliminary' && !inputs.dry_run - run: npm publish --tag next --provenance --access public + run: npm publish --tag next --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }} + - name: Pack npm tarball + if: inputs.release_type == 'preliminary' && !inputs.dry_run + run: npm pack + - name: Create pre-release via JReleaser if: inputs.release_type == 'preliminary' && !inputs.dry_run uses: jreleaser/release-action@v2 @@ -94,6 +98,10 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }} + - name: Pack npm tarball + if: inputs.release_type == 'final' && !inputs.dry_run + run: npm pack + - name: Create release via JReleaser if: inputs.release_type == 'final' && !inputs.dry_run uses: jreleaser/release-action@v2 diff --git a/jreleaser.yml b/jreleaser.yml index 2411eb4..436df4e 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -19,4 +19,4 @@ distributions: operaton-mcp: type: FLAT_BINARY artifacts: - - path: '{{projectName}}-{{projectVersion}}.tgz' + - path: 'operaton-operaton-mcp-{{projectVersion}}.tgz'