Skip to content

Commit

Permalink
ci: publish to open-vsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rszyma committed Sep 15, 2024
1 parent d54ab06 commit 5dc8f15
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 20 deletions.
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

9 changes: 2 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,11 @@ jobs:
echo "value=$(curl https://gist.githubusercontent.com/rszyma/c539a0dbe37d7de9f0c04c628b7a341a/raw/684177cd54d51c3bd8786e0d2b380e67f495fc1f/increment_version.sh -sSf | bash -s -- -p ${{ steps.version.outputs.value }})" >> $GITHUB_OUTPUT
- name: Setup - vsce
run: yarn global add vsce

- name: Verify that VSCE_PAT is correct
env:
VSCE_PAT: ${{ secrets.VSCE_ACCESS_TOKEN }}
run: vsce verify-pat rszyma
run: yarn global add vsce ovsx

- name: Build and publish
env:
VSCE_PAT: ${{ secrets.VSCE_ACCESS_TOKEN }}
OVSX_PAT: ${{ secrets.OPENVSX_ACCESS_TOKEN }}
run: |
make CARGO_FLAGS=--release package
just release ${{ steps.new_version.outputs.value }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ out
yarn-error.log
.vscode-test
*.vsix
.envrc

# A symbolic link to a local development kanata repo for testing changes.
kanata-local
.direnv
.direnv
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Unreleased

* no changes yet
* Added vscode-kanata to open-vsx registry - https://open-vsx.org/extension/rszyma/vscode-kanata

### 0.13.3

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

A VS Code extension that adds language support for [kanata](https://github.com/jtroo/kanata) configuration files.

Available at
- VS Code Marketplace - https://marketplace.visualstudio.com/items?itemName=rszyma.vscode-kanata
- Open VSX - https://open-vsx.org/extension/rszyma/vscode-kanata

This extension aims to stay up-to-date with latest kanata git.
Whenever something changes in `parser` folder in kanata repository, at the end of the day,
Github Actions will automatically build a new version of this extension with updated parser.
Expand Down
15 changes: 6 additions & 9 deletions flake.lock

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

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
yarn
wasm-pack
vsce
(pkgs.writeShellScriptBin "ovsx" "${pkgs.bun}/bin/bunx ovsx $@")
];
};
}
Expand Down
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ bump_kanata:
release VERSION:
just _ensure_no_staged_changes
vsce verify-pat rszyma
ovsx verify-pat rszyma
git checkout main
git pull
make CARGO_FLAGS=--release package
sed -i 's/\"version\": \"[^\"]*\"/\"version\": \"{{VERSION}}\"/' package.json
sed -i 's/### Unreleased/### Unreleased\n\n* no changes yet\n\n### {{VERSION}}/' CHANGELOG.md
vsce publish {{VERSION}}
vsce publish --yarn
ovsx publish --yarn
git add CHANGELOG.md package.json
git commit -m "Release v{{VERSION}}"
git push
Expand Down

0 comments on commit 5dc8f15

Please sign in to comment.