Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: publish VSIX file #51

Closed
wants to merge 1 commit into from
Closed
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
28 changes: 28 additions & 0 deletions .github/workflows/upload-artifact.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
workflow_dispatch:

name: Upload VSIX
jobs:
dryrun-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.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
- run: npm install @vscode/vsce
- run: npx vsce package -o openfga-latest.vsix
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # 3.1.2
with:
name: openfga-latest.vsix
if-no-files-found: error
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ The extension currently offers 3 core features, with more to come.

![Prompt to execute OpenFGA: Transform DSL to JSON command](resources/transform-command-select.png)



## Development

- Run `npm install` in the root directory. This installs all necessary npm modules.
Expand All @@ -72,6 +70,10 @@ To generate an installable build of this extension, you can do the following:
│ ├── src
│ │ ├── test // End to end tests for language client / server
│ │ └── extension.ts // Language client entry point
├── package.json // The extension manifest.
└── server // Language Server
└── src
└── server.ts // Language Server entry point
```

### Running the Client
Expand Down