Defining npm token and registry

This commit is contained in:
Borales 2019-10-13 23:56:24 +02:00
parent a162e275b0
commit 0246406bde
No known key found for this signature in database
GPG Key ID: CDC05EA9067B0EB5

View File

@ -4,11 +4,15 @@ inputs:
cmd:
description: 'Yarn command'
required: true
outputs:
time: # id of output
description: 'The time we greeted you'
auth-token:
description: 'NPM_AUTH_TOKEN'
registry-url:
description: 'NPM_REGISTRY_URL'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.cmd }}
env:
NPM_AUTH_TOKEN: ${{ inputs.auth-token }}
NPM_REGISTRY_URL: ${{ inputs.registry-url }}