Skip to content

Commit

Permalink
ci: fix node version
Browse files Browse the repository at this point in the history
  • Loading branch information
xseman committed Dec 6, 2024
1 parent 4f8273e commit 8726908
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
branches:
- master
workflow_dispatch:
inputs:
tag:
description: release git tag manually
required: false
type: string

permissions:
contents: write
Expand All @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22

0 comments on commit 8726908

Please sign in to comment.