Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 41 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,24 @@ jobs:
permissions:
contents: read
uses: ./.github/workflows/main.yaml
publish:
verify-tokens:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
# Versions below should be kept in sync with package.json devDependencies
steps:
- name: Verify VS Marketplace token
run: npx @vscode/[email protected] verify-pat openfga
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
- name: Verify Open VSX token
run: npx [email protected] verify-pat openfga -p "$OVSX_PAT"
env:
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}
publish-openvsx:
needs: [test, verify-tokens]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
Expand All @@ -34,22 +49,45 @@ jobs:
uses: HaaLeo/publish-vscode-extension@ca5561daa085dee804bf9f37fe0165785a9b14db # 2.0.0
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
preRelease: ${{ contains(github.ref, '-') }}
Comment thread
SoulPancake marked this conversation as resolved.
publish-vscode-marketplace:
needs: [test, verify-tokens]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # 6.3.0
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
scope: "@openfga"
always-auth: false
cache: "npm"
cache-dependency-path: ./package-lock.json
- run: npm ci
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@ca5561daa085dee804bf9f37fe0165785a9b14db # 2.0.0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com/
preRelease: ${{ contains(github.ref, '-') }}
create-release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: publish
needs: [publish-openvsx, publish-vscode-marketplace]
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: Roang-zero1/github-create-release-action@57eb9bdce7a964e48788b9e78b5ac766cb684803 # v3.0.1
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-[a-zA-Z0-9.]+)?$
prerelease_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+-
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: upload-artifact
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

## [Unreleased](https://github.com/openfga/vscode-ext/compare/v0.2.25...HEAD)
## [Unreleased](https://github.com/openfga/vscode-ext/compare/v0.2.26-beta.1...HEAD)

## v0.2.26-beta.1

### [0.2.26-beta.1](https://github.com/openfga/vscode-ext/compare/v0.2.25...v0.2.26-beta.1) (2026-03-10)

#### Maintenance
- fix: verify PAT token before publishing
- chore: split publish jobs for Open VSX Registry and Visual Studio Marketplace to run independently

## v0.2.25

Expand Down
4 changes: 2 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"zanzibar"
],
"license": "Apache-2.0",
"version": "0.2.25",
"version": "0.2.26-beta.1",
"publisher": "openfga",
"repository": {
"type": "git",
Expand Down
Loading
Loading