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

#765 Update packaging such that a pre-release version is created #777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
21 changes: 19 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,27 @@ jobs:
id: check
with:
diff-search: true # seach the diff content with version
- if: steps.check.outputs.changed == 'true'
id: is_preview
run: |
IFS=', ' read -r -a array <<< "${{ steps.check.outputs.version }}"
if [ $((array[1]%2)) -eq 0 ];
then
echo ::set-output name=is_preview"false"
else
echo ::set-output name=is_preview"true"
fi
shell: bash
- if: steps.check.outputs.changed == 'true'
run: npm ci
- if: steps.check.outputs.changed == 'true'
run: npm test
- name: package
if: steps.check.outputs.changed == 'true'
if: steps.check.outputs.changed == 'true' && steps.is_preview.outputs.is_preview == 'false'
run: npm run package
- name: package
if: steps.check.outputs.changed == 'true' && steps.is_preview.outputs.is_preview == 'true'
run: npm run package-pre-release
- name: publish to Github
uses: ncipollo/release-action@v1
if: steps.check.outputs.changed == 'true'
Expand All @@ -33,10 +47,13 @@ jobs:
commit: ${{ steps.check.outputs.commit }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: publish to VSCode Marketplace
if: steps.check.outputs.changed == 'true'
if: steps.check.outputs.changed == 'true' && steps.is_preview.outputs.is_preview == 'false'
# The token will expire. Regenerate it at:
# https://llvm-vs-code-extensions.visualstudio.com/_usersSettings/tokens.
run: npm run publish -- -p "${{ secrets.VSCODE_MARKETPLACE_TOKEN }}"
- name: publish to VSCode Marketplace
if: steps.check.outputs.changed == 'true' && steps.is_preview.outputs.is_preview == 'true'
run: npm run publish-pre-release -- -p "${{ secrets.VSCODE_MARKETPLACE_TOKEN }}"
- name: publish to OpenVSX
if: steps.check.outputs.changed == 'true'
# The token will expire. Regenerate it at:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## Version 0.1.34: Februari 19, 2025

* Create pre-release flows [#748](https://github.com/clangd/vscode-clangd/issues/748) [#753](https://github.com/clangd/vscode-clangd/issues/753) [#765](https://github.com/clangd/vscode-clangd/issues/765)
* Clean up disposables in early-return path of ClangdContext.create() [#743](https://github.com/clangd/vscode-clangd/issues/743)
* Publish API package to the default registry [#746](https://github.com/clangd/vscode-clangd/issues/746)
* Documentation
* Mention the clangd config file in the README [#752](https://github.com/clangd/vscode-clangd/issues/752)
* Mention the editor.defaultFormatter setting [#768](https://github.com/clangd/vscode-clangd/issues/768)
* Add an option to allow "clangd.path" to point to a shell script [#683](https://github.com/clangd/vscode-clangd/issues/683)
* Automatically restart clangd language server after it is installed [#749](https://github.com/clangd/vscode-clangd/issues/749)
* Handle workspace symbols searches with a '::' prefix [#769](https://github.com/clangd/vscode-clangd/issues/769)

## Version 0.1.33: November 21, 2024

* Reverted [#730](https://github.com/clangd/vscode-clangd/pull/730) for causing [#734](https://github.com/clangd/vscode-clangd/issues/734)
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-clangd",
"displayName": "clangd",
"description": "C/C++ completion, navigation, and insights",
"version": "0.1.33",
"version": "0.1.34",
"publisher": "llvm-vs-code-extensions",
"license": "MIT",
"homepage": "https://clangd.llvm.org/",
Expand Down Expand Up @@ -43,6 +43,8 @@
"test": "npm run test-compile && node ./out/test/index.js",
"package": "vsce package --baseImagesUrl https://raw.githubusercontent.com/clangd/vscode-clangd/master/",
"publish": "vsce publish --baseImagesUrl https://raw.githubusercontent.com/clangd/vscode-clangd/master/",
"package-pre-release": "vsce package --pre-release --baseImagesUrl https://raw.githubusercontent.com/clangd/vscode-clangd/master/",
"publish-pre-release": "vsce publish --pre-release --baseImagesUrl https://raw.githubusercontent.com/clangd/vscode-clangd/master/",
"publish-openvsx": "ovsx publish --baseImagesUrl https://raw.githubusercontent.com/clangd/vscode-clangd/master/",
"git-clang-format": "git-clang-format --extensions=ts"
},
Expand Down