From f99313a984b90b298fc6bbb7e03b6394e6da8243 Mon Sep 17 00:00:00 2001 From: Stephen Bungert Date: Sun, 28 Apr 2024 07:55:51 +0200 Subject: [PATCH] chore: update actions (#165) --- .github/workflows/publish.yml | 4 +-- .../publish_vscodemp_manual copy.yml | 27 +++++++++++++++++++ .github/workflows/publish_vscodemp_manual.yml | 26 ++++++++++++------ .nvmrc | 2 +- 4 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/publish_vscodemp_manual copy.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b03a871..70e0d66 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: types: [created] workflow_dispatch: jobs: - vscemp: + vscode: name: VSCode Marketplace runs-on: ubuntu-latest steps: @@ -29,7 +29,7 @@ jobs: if: github.event_name != 'workflow_dispatch' run: vsce publish -p ${{ secrets.VSCE_TOKEN }} - openvsix: + openvsx: name: OpenVSX Marketplace runs-on: ubuntu-latest steps: diff --git a/.github/workflows/publish_vscodemp_manual copy.yml b/.github/workflows/publish_vscodemp_manual copy.yml new file mode 100644 index 0000000..3676869 --- /dev/null +++ b/.github/workflows/publish_vscodemp_manual copy.yml @@ -0,0 +1,27 @@ +# Publish this VSCode Extension to the OpenVSX Marketplace + +name: Publish to Open VSX Marketplace (Manual) +on: + workflow_dispatch: +jobs: + openvsx: + name: OpenVSX Marketplace + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '${{ vars.NODE_VERSION }}' + registry-url: 'https://registry.npmjs.org' + + - name: Install Dependencies + run: yarn + + - name: Install Ovsx + run: npm i -g ovsx + + - name: Publish to OpenVSX Marketplace + run: ovsx publish --yarn -p ${{ secrets.OPENVSX_TOKEN }} diff --git a/.github/workflows/publish_vscodemp_manual.yml b/.github/workflows/publish_vscodemp_manual.yml index 50d534e..57b11dc 100644 --- a/.github/workflows/publish_vscodemp_manual.yml +++ b/.github/workflows/publish_vscodemp_manual.yml @@ -4,14 +4,24 @@ name: Publish to VSCode Marketplace (Manual) on: workflow_dispatch: jobs: - vscemp: - name: VScode Marketplace + vscode: + name: VSCode Marketplace runs-on: ubuntu-latest steps: - - name: Publish to VSCode Marketplace - uses: HaaLeo/publish-vscode-extension@v1.6.2 + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 with: - dryRun: true - pat: ${{ secrets.VSCE_TOKEN }} - registryUrl: https://marketplace.visualstudio.com - yarn: true + node-version: '${{ vars.NODE_VERSION }}' + registry-url: 'https://registry.npmjs.org' + + - name: Install Dependencies + run: yarn + + - name: Install Vsce + run: npm i -g vsce + + - name: Publish to VSCode Marketplace + run: vsce publish -p ${{ secrets.VSCE_TOKEN }} diff --git a/.nvmrc b/.nvmrc index 5b0ad74..1e24c02 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.13.0 \ No newline at end of file +18.15.0 \ No newline at end of file