Skip to content

Commit

Permalink
Make the release workflow manually dispatched (#5733)
Browse files Browse the repository at this point in the history
  • Loading branch information
acywatson authored Mar 18, 2024
1 parent 090a1e8 commit 4b8a46e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4b8a46e

Please sign in to comment.