mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
30 lines
955 B
YAML
30 lines
955 B
YAML
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"
|
|
|
|
jobs:
|
|
publish-npm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
registry-url: https://registry.npmjs.org/
|
|
- 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 }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|