diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86a6118..ef13fe2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,3 +28,25 @@ jobs: run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + github-publish: + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://npm.pkg.github.com' + + - name: Publish to npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 9b6eb47..a04b83c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@techdivision/opencode-cli", - "version": "0.3.1", + "version": "0.3.3", "description": "CLI tools for OpenCode plugin management", "type": "module", "bin": {