mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
Feat/impr release (#530)
This commit is contained in:
32
.github/workflows/npmpublish.yml
vendored
32
.github/workflows/npmpublish.yml
vendored
@@ -1,20 +1,28 @@
|
||||
name: Node.js Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
releaseArgs:
|
||||
description: "Arguments to append to the release CLI command"
|
||||
required: true
|
||||
default: "--ci"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
publish-npm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn run test
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: |
|
||||
npm install
|
||||
npm run release -- ${{ github.event.inputs.releaseArgs }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
CI: true
|
||||
ADYEN_API_KEY: ${{ secrets.ADYEN_API_KEY }}
|
||||
ADYEN_MERCHANT: ${{ secrets.ADYEN_MERCHANT }}
|
||||
@@ -31,17 +39,3 @@ jobs:
|
||||
ADYEN_TERMINAL_APIKEY: ${{ secrets.ADYEN_TERMINAL_APIKEY }}
|
||||
ADYEN_TERMINAL_POIID: ${{ secrets.ADYEN_TERMINAL_POIID }}
|
||||
ADYEN_TERMINAL_MERCHANT: ${{ secrets.ADYEN_TERMINAL_MERCHANT }}
|
||||
- run: yarn run build
|
||||
|
||||
publish-npm:
|
||||
needs: build
|
||||
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 publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
Reference in New Issue
Block a user