Skip to content

Commit

Permalink
Update npmpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
montumodi authored Dec 24, 2024
1 parent 59be706 commit c6893c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Node.js Package

on:
workflow_dispatch:

inputs:
npm_otp:
description: enter npm otp
required: true
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,6 +55,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- run: npm publish
- run: npm publish --otp ${{github.event.inputs.npm_otp}}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit c6893c0

Please sign in to comment.