Skip to content

Commit c212058

Browse files
(release) 0.4.0
1 parent 938500b commit c212058

4 files changed

Lines changed: 12 additions & 20 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,23 @@ jobs:
3333
- name: Install vsce and ovsx
3434
run: |
3535
npm install -g @vscode/vsce
36-
npm install -g @openvsx/publish-cli
36+
npm install -g ovsx
3737
3838
- name: Package extension
3939
run: npm run package
4040
id: package
4141

42-
- name: Get version from tag or input
42+
- name: Get version from tag
4343
id: version
4444
run: |
45-
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
46-
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
47-
else
48-
VERSION=${GITHUB_REF#refs/tags/v}
49-
echo "version=$VERSION" >> $GITHUB_OUTPUT
50-
fi
45+
VERSION=${GITHUB_REF#refs/tags/}
46+
# Remove 'v' prefix if present
47+
VERSION=${VERSION#v}
48+
echo "version=$VERSION" >> $GITHUB_OUTPUT
5149
5250
- name: Update package.json version
53-
if: github.event_name == 'workflow_dispatch'
5451
run: |
55-
npm version ${{ github.event.inputs.version }} --no-git-tag-version
56-
git config user.name "github-actions[bot]"
57-
git config user.email "github-actions[bot]@users.noreply.github.com"
58-
git add package.json
59-
git commit -m "Bump version to ${{ github.event.inputs.version }}" || exit 0
60-
git push || exit 0
52+
npm version ${{ steps.version.outputs.version }} --no-git-tag-version
6153
6254
- name: Publish to VS Code Marketplace
6355
env:
@@ -67,7 +59,7 @@ jobs:
6759
6860
- name: Publish to OpenVSX Registry
6961
env:
70-
OVSX_PAT: ${{ secrets.OVSX_TOKEN }}
62+
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }}
7163
run: |
7264
ovsx publish -p $OVSX_TOKEN
7365

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.3.0",
2+
"version": "0.4.0",
33
"configurations": [
44
{
55
"name": "Run Extension",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rayforce-vscode",
33
"displayName": "RayforceDB",
44
"description": "Runtime Manager for RayforceDB",
5-
"version": "0.3.0",
5+
"version": "0.4.0",
66
"publisher": "RayforceDB",
77
"icon": "assets/logo.png",
88
"repository": {

0 commit comments

Comments
 (0)