From 4b8a46ed103830b82319fa435888909bce573f70 Mon Sep 17 00:00:00 2001 From: Acy Watson Date: Mon, 18 Mar 2024 07:56:16 -0600 Subject: [PATCH] Make the release workflow manually dispatched (#5733) --- .github/workflows/pre-release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index b2cfc6a06c0..cd15b550cf8 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -1,19 +1,15 @@ name: Publish to NPM -on: - push: - branches: - - main +on: workflow_dispatch jobs: release: runs-on: ubuntu-latest - if: ${{ endsWith(github.ref, '__release') }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20.x' registry-url: 'https://registry.npmjs.org' - run: npm install - run: npm run prepare-release