diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 37a9427..2148b4c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,8 +16,19 @@ jobs: with: bun-version: latest + - uses: actions/setup-node@v4 + with: + node-version: '22' + registry-url: 'https://registry.npmjs.org' + - run: bun install --frozen-lockfile + - name: Set version from release tag + run: | + VERSION="${{ github.event.release.tag_name }}" + VERSION="${VERSION#v}" + npm version "$VERSION" --no-git-tag-version + - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index ee2159c..a7f1ecd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sleipi/opencode-usage-stats", - "version": "0.1.0", + "version": "0.0.0-dev", "description": "Usage statistics tracking and dashboard for OpenCode", "type": "module", "main": "./src/plugin.ts",