From e0259779fd4185dd305b893a889a96c16cecef0b Mon Sep 17 00:00:00 2001 From: Harald Deiser Date: Thu, 16 Apr 2026 15:20:30 +0200 Subject: [PATCH 1/3] feat: Added github publish --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86a6118..99e99d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,3 +28,24 @@ 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 + + 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..702ff54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@techdivision/opencode-cli", - "version": "0.3.1", + "version": "0.3.2", "description": "CLI tools for OpenCode plugin management", "type": "module", "bin": { From e64e53a995b813e05a1d578d13639e67b0c1d400 Mon Sep 17 00:00:00 2001 From: Harald Deiser Date: Thu, 16 Apr 2026 15:25:56 +0200 Subject: [PATCH 2/3] Added write permissions for packages --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99e99d4..ef13fe2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,6 +34,7 @@ jobs: permissions: contents: read id-token: write + packages: write steps: - name: Checkout repository From 9e3a1e139689e3e33062ac0efa8d8625cfc98416 Mon Sep 17 00:00:00 2001 From: Harald Deiser Date: Thu, 16 Apr 2026 15:26:38 +0200 Subject: [PATCH 3/3] feat: test new version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 702ff54..a04b83c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@techdivision/opencode-cli", - "version": "0.3.2", + "version": "0.3.3", "description": "CLI tools for OpenCode plugin management", "type": "module", "bin": {