From 8726908234095e9b21e8a6b19ead173f48636c19 Mon Sep 17 00:00:00 2001 From: Filip Seman Date: Fri, 6 Dec 2024 12:03:58 +0100 Subject: [PATCH] ci: fix node version --- .github/workflows/release-please.yml | 12 +++++++++--- .nvmrc | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index cdea251..f118b04 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -4,6 +4,12 @@ on: push: branches: - master + workflow_dispatch: + inputs: + tag: + description: release git tag manually + required: false + type: string permissions: contents: write @@ -22,17 +28,17 @@ jobs: token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - uses: actions/checkout@v4 - if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created || github.event.inputs.tag }} - uses: actions/setup-node@v4 - if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created || github.event.inputs.tag }} with: node-version-file: ".nvmrc" registry-url: "https://registry.npmjs.org" cache: npm - name: Build and publish on VS Code Marketplace - if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created || github.event.inputs.tag }} env: VSCE_PAT: ${{ secrets.VSCE_PAT }} run: | diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..53d1c14 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v22