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