Skip to content

Commit 5db55eb

Browse files
committed
Release v4.0.4
1 parent 4877d03 commit 5db55eb

4 files changed

Lines changed: 44 additions & 8 deletions

File tree

.github/workflows/markets-publish.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
name: "MarketsPublish"
88

99
on:
10+
# Start action after pushing a tag that starts with "v" (e.g., v1.0.0)
11+
push:
12+
tags:
13+
- 'v*'
1014
# Start action after created a release
1115
# release:
1216
# types:
@@ -20,30 +24,53 @@ jobs:
2024
build:
2125
# The type of runner that the job will run on
2226
runs-on: ubuntu-latest
27+
permissions:
28+
contents: write
2329
steps:
2430
- name: Checkout repository
2531
uses: actions/checkout@v4
2632

2733
- name: Install Node.js
2834
uses: actions/setup-node@v4
2935
with:
30-
node-version: 20.x
36+
node-version: '24'
37+
cache: yarn
38+
39+
- name: Extract Release Notes
40+
run: |
41+
awk '/^## Release Notes/{flag=1; next} /^## /{flag=0} flag' README.md > release-notes.md
3142
3243
- name: Build
3344
run: |
34-
npm install -g yarn semver vsce ovsx
45+
npm install -g yarn semver @vscode/vsce ovsx
3546
yarn install
3647
3748
- name: Test
3849
run: xvfb-run -a yarn test
3950

51+
- name: Package VSIX
52+
run: |
53+
vsce package --yarn
54+
echo "VSIX_FILE=$(ls *.vsix | head -n 1)" >> $GITHUB_ENV
55+
4056
- name: Publish to VSCE
41-
if: ${{ success() }}
42-
run: vsce publish --yarn
57+
if: ${{ success() && startsWith(github.ref, 'refs/tags/v') }}
58+
run: vsce publish --packagePath ${{ env.VSIX_FILE }}
4359
env:
4460
VSCE_PAT: ${{ secrets.VSCE_PAT }}
61+
4562
- name: Publish to OVSX
46-
if: ${{ success() }}
47-
run: ovsx publish --yarn
63+
if: ${{ success() && startsWith(github.ref, 'refs/tags/v') }}
64+
run: ovsx publish ${{ env.VSIX_FILE }}
4865
env:
4966
OVSX_PAT: ${{ secrets.OVSX_PAT }}
67+
68+
- name: Create GitHub Release
69+
if: ${{ success() && startsWith(github.ref, 'refs/tags/v') }}
70+
uses: softprops/action-gh-release@v2
71+
with:
72+
name: "Wikitext Extension for VSCode ${{ github.ref_name }}"
73+
body_path: release-notes.md
74+
files: ${{ env.VSIX_FILE }}
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ All notable changes to the "Wikitext" extension will be documented in this file.
55

66
(The version marked with an asterisk(\*) means that the version has been adjusted internally and has not been released.)<!-- http://keepachangelog.com/ -->
77

8-
## [4.0.3] - 2026-05-06
8+
## [4.0.4]\* - 2026-05-06
9+
10+
### Changed
11+
12+
- Upgraded Node.js version requirement to 24.
13+
- Upgraded VSCode version requirement to 1.110.0.
14+
15+
## [4.0.3]\* - 2026-05-06
916

1017
### Fixed
1118

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ If you get help with this project, give this project a star or recommend it to o
7676

7777
- Used explicit request methods to access the API to avoid some potential issues.
7878
- Organized extension settings into grouped sections and updated the description of some settings.
79+
- Upgraded Node.js version requirement to 24.
80+
- Upgraded VSCode version requirement to 1.110.0.
7981

8082
## Usage
8183

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "wikitext",
33
"displayName": "Wikitext",
44
"description": "Wikitext is a document written in a wiki markup language. This extension provides functional support for the Wikitext language with MediaWiki such as Wikipedia.",
5-
"version": "4.0.3",
5+
"version": "4.0.4",
66
"publisher": "RoweWilsonFrederiskHolme",
77
"license": "SEE LICENSE IN LICENSE.txt",
88
"author": {

0 commit comments

Comments
 (0)