mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
Update npmpublish.yml
This commit is contained in:
13
.github/workflows/npmpublish.yml
vendored
13
.github/workflows/npmpublish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user