diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f11354b..543ae7c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,12 +59,12 @@ jobs: node-version: '20' registry-url: 'https://registry.npmjs.org' - - name: Run GoReleaser + - name: Update package version if: steps.version.outputs.version_tag != '' - uses: goreleaser/goreleaser-action@v6 - with: - version: latest - args: release --clean + run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version + + - name: Publish to npm + if: steps.version.outputs.version_tag != '' + run: npm publish --access public env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c4e6932..0490c9b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -44,8 +44,19 @@ release: npm: name: "@lukaszraczylo/cloudflare-crawl-mcp" + license: MIT + author: "Lukasz Raczylo " + repository: https://github.com/lukaszraczylo/cloudflare-crawl-mcp + access: public channel: "latest" dir: "." skip_upload: false scripts: post_pack: npm run build + keywords: + - cloudflare + - crawl + - mcp + - browser rendering + description: "A MCP tool to crawl Cloudflare's Browser Rendering API and extract data from the rendered pages." +