mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-04-04 20:05:05 +08:00
Defining npm token and registry
This commit is contained in:
parent
a162e275b0
commit
0246406bde
10
action.yml
10
action.yml
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user