Skip to content

Commit

Permalink
add workflow_dispatch with version input
Browse files Browse the repository at this point in the history
  • Loading branch information
mnholtz committed Sep 20, 2023
1 parent 4495f18 commit 02ba620
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Publish Package to npmjs
on:
release:
types: [published]
# release:
# types: [published]
workflow_dispatch:
inputs:
version:
description: "Version accepted by `npm version *`"
required: true
env:
EM_VERSION: 1.39.14
jobs:
Expand All @@ -23,6 +28,7 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm version ${{ github.event.inputs.version }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 02ba620

Please sign in to comment.