Update npmpublish.yml

This commit is contained in:
Ricardo Ambrogi
2020-09-25 09:37:11 +02:00
committed by GitHub
parent ea1da161d0
commit 6e7e62b240

View File

@@ -1,13 +1,7 @@
name: Node.js Package
on:
workflow_dispatch:
inputs:
releaseType:
description: "Release type (major/minor/patch)"
required: true
releaseArgs:
description: "Additional arguments to be appended to the `release-it` CLI command"
workflow_dispatch
jobs:
publish-npm:
@@ -21,10 +15,7 @@ jobs:
- run: |
npm install
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
git config --global user.name 'GitHub'
git config --global user.email 'noreply@github.com'
npm run release -- ${{ github.event.inputs.releaseType }} --ci ${{ github.event.inputs.releaseArgs }}
npm publish
env:
GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
CI: false