From d69d0554a61e21569be239bd0a2e35375fb13def Mon Sep 17 00:00:00 2001 From: Carmit Hershman Date: Wed, 6 May 2026 15:28:05 +0300 Subject: [PATCH 1/2] chore: release 0.0.3 - Allow instructions and skills versioning - Bump version to 0.0.3 in package.json. - Update README to reflect the new plugin version. - Add GitHub Actions workflow for publishing the package. --- .github/workflows/publish-as-is.yml | 33 +++++++++++++++++++++++++++++ README.md | 2 +- package.json | 2 +- src/index.ts | 4 ++-- 4 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish-as-is.yml diff --git a/.github/workflows/publish-as-is.yml b/.github/workflows/publish-as-is.yml new file mode 100644 index 0000000..5ae1c2a --- /dev/null +++ b/.github/workflows/publish-as-is.yml @@ -0,0 +1,33 @@ +name: Publish public Package version + +on: + workflow_dispatch: + repository_dispatch: + types: [publish-package-as-is] + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd + with: + install: true + cache: true + experimental: true + + - name: Build + run: mise run build + + - name: Publish to npm with OIDC + run: | + echo "Publishing version as is" + mise run publish diff --git a/README.md b/README.md index 642f040..7fc9041 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Preferably set the plugin globally for all their developers using the Opencode r The plugin configuration looks like this: ``` "plugin": [ - "@jfrog/opencode-jfrog-plugin@0.0.2" + "@jfrog/opencode-jfrog-plugin@0.0.3" ], ``` diff --git a/package.json b/package.json index 974324a..4421fc1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jfrog/opencode-jfrog-plugin", - "version": "0.0.2", + "version": "0.0.3", "description": "JFrog Plugin for seamless integration to Opencode", "author": { "name": "JFrog", diff --git a/src/index.ts b/src/index.ts index 4f8a029..97105c6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,9 +17,9 @@ import { dirname, join } from 'path'; const LOG_FILE = join(process.cwd(), '.opencode', 'event-log.txt'); const SKILLS_REGISTRY_URL = 'https://releases.jfrog.io/artifactory/jfrog-skills'; const INSTRUCTIONS_REGISTRY_URL = - 'https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/JFROG-INTEGRATION-MANAGEMENT.md'; + 'https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/opencode-JFROG-INTEGRATION-MANAGEMENT-[RELEASE].md'; const SKILLS_TO_INSTALL_URL = - 'https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/JFROG-OPENCODE_SKILLS.json'; + 'https://releases.jfrog.io/artifactory/run/ai/integrations/opencode/opencode-JFROG-OPENCODE_SKILLS-[RELEASE].json'; const fetchAndSaveFile = async ( url: string, From 510b8fc3269de1b79bc529e3b02275a99e541be4 Mon Sep 17 00:00:00 2001 From: Carmit Hershman Date: Wed, 6 May 2026 15:40:17 +0300 Subject: [PATCH 2/2] chore: enhance GitHub Actions workflow for JFrog integration - Added setup for JFrog CLI to facilitate npm repository configuration. - Created bunfig.toml for JFrog npm repository settings. - Configured npm to use the JFrog registry for publishing. - Set npmjs.com as the default registry before publishing. --- .github/workflows/publish-as-is.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/publish-as-is.yml b/.github/workflows/publish-as-is.yml index 5ae1c2a..31bdfbc 100644 --- a/.github/workflows/publish-as-is.yml +++ b/.github/workflows/publish-as-is.yml @@ -17,6 +17,28 @@ jobs: with: fetch-depth: 0 fetch-tags: true + - name: Setup JFrog CLI + id: setup-cli + uses: jfrog/setup-jfrog-cli@v4.9.1 + env: + JF_URL: https://${{ vars.JF_URL }}/ + JF_PROJECT: carmit + with: + oidc-provider-name: github-oidc + + - name: setup jfrog npm repo + run: | + echo "Setting up jfrog npm repo" + # create bunfig.toml file with the following content: + echo "[install]" > bunfig.toml + echo "registry = { token = \"${{ steps.setup-cli.outputs.oidc-token }}\", url = \"https://ctoa.jfrog.io/artifactory/api/npm/carmit-carmit-npm-virtual/\" }" >> bunfig.toml + # add always-auth + echo "always-auth = true" >> bunfig.toml + cat bunfig.toml + + # configure jfrog npm repo + jf npm-config --repo-resolve=carmit-carmit-npm-virtual --global + - uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd with: @@ -29,5 +51,7 @@ jobs: - name: Publish to npm with OIDC run: | + # set npmjs.com as the registry + npm config set registry https://registry.npmjs.org/ echo "Publishing version as is" mise run publish