mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-28 19:49:27 +08:00
Initial migration on TS
This commit is contained in:
+10
-11
@@ -1,5 +1,6 @@
|
||||
name: 'GitHub Action for Yarn'
|
||||
description: 'Wraps the yarn CLI to enable common yarn commands'
|
||||
author: 'Alex Bordun'
|
||||
branding:
|
||||
icon: 'package'
|
||||
color: 'blue'
|
||||
@@ -7,15 +8,13 @@ inputs:
|
||||
cmd:
|
||||
description: 'Yarn command'
|
||||
required: true
|
||||
auth-token:
|
||||
description: 'NPM_AUTH_TOKEN'
|
||||
registry-url:
|
||||
description: 'NPM_REGISTRY_URL'
|
||||
# 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 }}
|
||||
using: 'node16'
|
||||
main: 'dist/index.js'
|
||||
# env:
|
||||
# NPM_AUTH_TOKEN: ${{ inputs.auth-token }}
|
||||
# NPM_REGISTRY_URL: ${{ inputs.registry-url }}
|
||||
|
||||
Reference in New Issue
Block a user