From fc6cab77f44748e828945561cc078b20ad9bf6b9 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Tue, 17 Sep 2024 18:01:46 +0200 Subject: [PATCH 1/6] Add script for publishing to OpenVsx --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a5b17eb..d88d568 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -136,3 +136,9 @@ jobs: # The token is only valid for a limited time - renewal might be required. MARKETPLACE_TOKEN: ${{ secrets.MARKETPLACE_TOKEN }} VERSION: ${{ steps.get_version.outputs.VERSION }} + + - run: npm install -g ovsx@0.9.4 + - run: ovsx publish -p "${OPENVSX_NAMESPACE_TOKEN}" --packagePath dist/${PACKAGE_NAME}-${VERSION}.vsix + env: + OPENVSX_NAMESPACE_TOKEN: ${{ secrets.OPENVSX_NAMESPACE_TOKEN }} + VERSION: ${{ steps.get_version.outputs.VERSION }} \ No newline at end of file From 9cc24c11f4ee94feb7a76abc16583f8740d550e4 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Tue, 17 Sep 2024 18:08:08 +0200 Subject: [PATCH 2/6] New upload artifact version --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d88d568..6327970 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,7 +43,7 @@ jobs: # -Dsonar.login=${{ secrets.SONAR_TOKEN }} - name: "Upload Artifact: VSIX Packages" - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: package path: dist/*.vsix From 36a7ebe61ec37a2a414b1b5c967dbb5f650cbc66 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Tue, 17 Sep 2024 18:16:18 +0200 Subject: [PATCH 3/6] Update setup-node --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6327970..bcf17cd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: - name: "Prepare: Checkout Repository" uses: actions/checkout@v2 - name: "Prepare: Use Node.js ${{ matrix.node-version }}" - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: v16.x #- name: "Prepare: Setup sonarqube" @@ -26,7 +26,7 @@ jobs: # env: # CI: true - name: "Prepare: Package VSCode Extension" - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: v16.x #- run: npm install -g npm@latest From 71c8d22820f4b9a10d89507a8c371eca084b8574 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Tue, 17 Sep 2024 18:19:27 +0200 Subject: [PATCH 4/6] Update vsce --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bcf17cd..9d721ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ jobs: node-version: v16.x #- run: npm install -g npm@latest - run: npm install -g npm@8.13.2 - - run: npm install -g vsce@2.9.2 + - run: npm install -g vscode/vsce@2.15.0 - run: vsce package --out dist/ @@ -128,7 +128,7 @@ jobs: id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} - - run: npm install -g vsce@1.96.1 + - run: npm install -g vscode/vsce@2.15.0 - run: vsce publish -p "${MARKETPLACE_TOKEN}" --packagePath dist/${PACKAGE_NAME}-${VERSION}.vsix env: # Note: Marketplace Token according to: From 94079744e73137086388554ee58c135c6b6d1f5d Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Tue, 17 Sep 2024 18:21:21 +0200 Subject: [PATCH 5/6] Fix name --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9d721ac..f8909c5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ jobs: node-version: v16.x #- run: npm install -g npm@latest - run: npm install -g npm@8.13.2 - - run: npm install -g vscode/vsce@2.15.0 + - run: npm install -g @vscode/vsce@2.15.0 - run: vsce package --out dist/ @@ -128,7 +128,7 @@ jobs: id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} - - run: npm install -g vscode/vsce@2.15.0 + - run: npm install -g @vscode/vsce@2.15.0 - run: vsce publish -p "${MARKETPLACE_TOKEN}" --packagePath dist/${PACKAGE_NAME}-${VERSION}.vsix env: # Note: Marketplace Token according to: From bbead68c76322a2ff07cc6536386889cebd8f0c6 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Tue, 17 Sep 2024 18:24:16 +0200 Subject: [PATCH 6/6] Update node --- .github/workflows/ci.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f8909c5..40b1e25 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,11 +14,9 @@ jobs: - name: "Prepare: Use Node.js ${{ matrix.node-version }}" uses: actions/setup-node@v4 with: - node-version: v16.x + node-version: v22.x #- name: "Prepare: Setup sonarqube" # uses: warchant/setup-sonar-scanner@v1 - #- run: npm install -g npm@latest - - run: npm install -g npm@8.13.2 - run: npm install - run: npm run lint - run: npm run vscode:prepublish @@ -28,9 +26,7 @@ jobs: - name: "Prepare: Package VSCode Extension" uses: actions/setup-node@v4 with: - node-version: v16.x - #- run: npm install -g npm@latest - - run: npm install -g npm@8.13.2 + node-version: v22.x - run: npm install -g @vscode/vsce@2.15.0 - run: vsce package --out dist/