diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f935a8c36b..d7d1a525b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: branches: [main] paths: - 'packages/cli/package.json' + workflow_dispatch: permissions: {} @@ -14,7 +15,7 @@ env: jobs: check: - if: github.repository == 'voidzero-dev/vite-plus' + if: github.repository == 'voidzero-dev/vite-plus' && github.ref == 'refs/heads/main' name: Check version runs-on: ubuntu-latest permissions: @@ -73,7 +74,7 @@ jobs: - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version-file: .node-version + node-version: '24.18.0' package-manager-cache: false registry-url: 'https://registry.npmjs.org' @@ -152,9 +153,6 @@ jobs: pattern: vp-release-archive-* merge-multiple: true - - name: 'Setup npm' - run: npm install -g npm@latest - - name: Prepare and publish native addons run: node ./packages/cli/publish-native-addons.ts --mode npm