Feat/impr release (#530)

This commit is contained in:
Ricardo Ambrogi
2020-08-05 13:13:27 +02:00
committed by GitHub
parent 164f6ca2b3
commit fb5128c636
2151 changed files with 10231 additions and 56059 deletions

View File

@@ -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}}