Skip to content

Commit bd6751c

Browse files
committed
Set up publishing on OpenVSX
1 parent 558147b commit bd6751c

File tree

5 files changed

+74
-6
lines changed

5 files changed

+74
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Build
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: "18"
15+
node-version: "20.16.0"
1616
cache: "yarn"
1717

1818
- name: 📦 Install dependencies

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: "18"
17+
node-version: "20.16.0"
1818
cache: "yarn"
1919

2020
- name: 📦 Install dependencies
@@ -27,3 +27,8 @@ jobs:
2727
run: node_modules/.bin/vsce publish --packagePath vscode-shopify-ruby.vsix
2828
env:
2929
VSCE_PAT: ${{ secrets.VSCE_PAT }}
30+
31+
- name: Publish extension on OpenVSX
32+
run: |
33+
yarn run package
34+
node_modules/.bin/ovsx publish vscode-shopify-ruby.vsix -p ${{ secrets.OPENVSX_TOKEN }} --yarn

dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: nodejs
55
up:
66
- node:
77
yarn: true
8-
version: 18.15.0
8+
version: 20.16.0
99

1010
commands:
1111
package: "yarn run package"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"resolutions": {
5555
"node-fetch": ">= 2.6.7",
5656
"cross-fetch": ">= 3.1.5",
57-
"lru-cache": ">= 11.0.1",
5857
"ws": ">= 7.4.6"
5958
},
6059
"devDependencies": {
@@ -77,6 +76,7 @@
7776
"eslint-plugin-prettier": "^5.2.1",
7877
"glob": "^11.0.0",
7978
"mocha": "^10.7.3",
79+
"ovsx": "^0.10.0",
8080
"prettier": "^3.3.3",
8181
"typescript": "^5.6.3"
8282
}

yarn.lock

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@
936936
"@vscode/vsce-sign-win32-arm64" "2.0.2"
937937
"@vscode/vsce-sign-win32-x64" "2.0.2"
938938

939-
"@vscode/vsce@^3.1.1":
939+
"@vscode/vsce@^3.1.0", "@vscode/vsce@^3.1.1":
940940
version "3.1.1"
941941
resolved "https://registry.yarnpkg.com/@vscode/vsce/-/vsce-3.1.1.tgz#b18b44796d9e5b7a48a3a1e89f93def9c3b338b9"
942942
integrity sha512-N62Ca9ElRPLUUzf7l9CeEBlLrYzFPRQq7huKk4pVW+LjIOSXfFIPudixn5QvZcz+yXDOh15IopI3K2o3y9666Q==
@@ -1478,6 +1478,11 @@ chownr@^1.1.1:
14781478
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
14791479
integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==
14801480

1481+
ci-info@^2.0.0:
1482+
version "2.0.0"
1483+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
1484+
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
1485+
14811486
cli-cursor@^4.0.0:
14821487
version "4.0.0"
14831488
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-4.0.0.tgz#3cecfe3734bf4fe02a8361cbdc0f6fe28c6a57ea"
@@ -2513,6 +2518,11 @@ flatted@^3.1.0:
25132518
resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz"
25142519
integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==
25152520

2521+
follow-redirects@^1.14.6:
2522+
version "1.15.9"
2523+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1"
2524+
integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==
2525+
25162526
for-each@^0.3.3:
25172527
version "0.3.3"
25182528
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
@@ -3039,6 +3049,13 @@ is-callable@^1.1.4, is-callable@^1.2.4:
30393049
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
30403050
integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==
30413051

3052+
is-ci@^2.0.0:
3053+
version "2.0.0"
3054+
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c"
3055+
integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==
3056+
dependencies:
3057+
ci-info "^2.0.0"
3058+
30423059
is-core-module@^2.13.0, is-core-module@^2.8.1:
30433060
version "2.13.0"
30443061
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db"
@@ -3515,11 +3532,25 @@ lower-case@^2.0.2:
35153532
dependencies:
35163533
tslib "^2.0.3"
35173534

3518-
"lru-cache@>= 11.0.1", lru-cache@^11.0.0, lru-cache@^5.1.1, lru-cache@^6.0.0:
3535+
lru-cache@^11.0.0:
35193536
version "11.0.1"
35203537
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.0.1.tgz#3a732fbfedb82c5ba7bca6564ad3f42afcb6e147"
35213538
integrity sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==
35223539

3540+
lru-cache@^5.1.1:
3541+
version "5.1.1"
3542+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
3543+
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
3544+
dependencies:
3545+
yallist "^3.0.2"
3546+
3547+
lru-cache@^6.0.0:
3548+
version "6.0.0"
3549+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
3550+
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
3551+
dependencies:
3552+
yallist "^4.0.0"
3553+
35233554
markdown-it@^14.1.0:
35243555
version "14.1.0"
35253556
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-14.1.0.tgz#3c3c5992883c633db4714ccb4d7b5935d98b7d45"
@@ -3892,6 +3923,20 @@ ora@^7.0.1:
38923923
string-width "^6.1.0"
38933924
strip-ansi "^7.1.0"
38943925

3926+
ovsx@^0.10.0:
3927+
version "0.10.0"
3928+
resolved "https://registry.yarnpkg.com/ovsx/-/ovsx-0.10.0.tgz#85c75c5c1896d4d531722bd579bde27429789369"
3929+
integrity sha512-DSgNXGQ444nGKag+LZh92R/hM2PfRSu+6VKfVawoZ+JzFDiGX8yhMkAuyVlHrlxLCpfQOsqs80GcHje/h2SpmA==
3930+
dependencies:
3931+
"@vscode/vsce" "^3.1.0"
3932+
commander "^6.2.1"
3933+
follow-redirects "^1.14.6"
3934+
is-ci "^2.0.0"
3935+
leven "^3.1.0"
3936+
semver "^7.6.0"
3937+
tmp "^0.2.3"
3938+
yauzl "^3.1.3"
3939+
38953940
p-limit@^3.0.2:
38963941
version "3.1.0"
38973942
resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz"
@@ -5105,6 +5150,16 @@ y18n@^5.0.5:
51055150
resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz"
51065151
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
51075152

5153+
yallist@^3.0.2:
5154+
version "3.1.1"
5155+
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
5156+
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
5157+
5158+
yallist@^4.0.0:
5159+
version "4.0.0"
5160+
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
5161+
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
5162+
51085163
yargs-parser@^20.2.2, yargs-parser@^20.2.9:
51095164
version "20.2.9"
51105165
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee"
@@ -5141,6 +5196,14 @@ yauzl@^2.3.1:
51415196
buffer-crc32 "~0.2.3"
51425197
fd-slicer "~1.1.0"
51435198

5199+
yauzl@^3.1.3:
5200+
version "3.1.3"
5201+
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-3.1.3.tgz#f61c17ad1a09403bc7adb01dfb302a9e74bf4a50"
5202+
integrity sha512-JCCdmlJJWv7L0q/KylOekyRaUrdEoUxWkWVcgorosTROCFWiS9p2NNPE9Yb91ak7b1N5SxAZEliWpspbZccivw==
5203+
dependencies:
5204+
buffer-crc32 "~0.2.3"
5205+
pend "~1.2.0"
5206+
51445207
yazl@^2.2.2:
51455208
version "2.5.1"
51465209
resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.5.1.tgz#a3d65d3dd659a5b0937850e8609f22fffa2b5c35"

0 commit comments

Comments
 (0)