feat: v1
This commit is contained in:
23
action.yml
Normal file
23
action.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: 'Release npm package'
|
||||
description: 'Сборка и публикация npm пакета'
|
||||
inputs:
|
||||
package_dir:
|
||||
description: 'Относительный путь к папке пакета внутри репозитория'
|
||||
required: false
|
||||
default: '.'
|
||||
npm_config_registry_auth:
|
||||
description: 'Часть .npmrc отвечающая за авторизацию'
|
||||
required: false
|
||||
default: ''
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: "release"
|
||||
shell: bash
|
||||
env:
|
||||
PACKAGE_DIR: ${{ inputs.package_dir }}
|
||||
NPM_CONFIG_REGISTRY_AUTH: ${{ inputs.npm_config_registry_auth }}
|
||||
working-directory: ${{ inputs.package_dir }}
|
||||
run: |
|
||||
cp "$GITHUB_ACTION_PATH/Taskfile.base.yml" ./Taskfile.base.yml
|
||||
task -t "./Taskfile.base.yml" base:release
|
||||
Reference in New Issue
Block a user