-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaction.yml
36 lines (36 loc) · 1.05 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'azure-npm-publish'
description: 'GitHub action to automatically publish a NPM package into Azure Artifacts'
author: 'Innerspace GmbH'
inputs:
package-dir:
description: 'The path for the package.json if it is not in root'
required: false
default: '.'
npm-email:
description: 'Required email to upload the npm package'
required: true
organization:
description: 'Value which replaces "<yourOrganization>" in the .npmrc file'
required: true
feed:
description: 'Value which replaces "<yourFeed>" in the .npmrc file'
required: true
username:
description: 'Any value but not an empty string'
required: true
base64-token:
description: 'Value which replaces [BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] in the .npmrc file'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.package-dir }}
- ${{ inputs.npm-email }}
- ${{ inputs.organization }}
- ${{ inputs.feed }}
- ${{ inputs.username }}
- ${{ inputs.base64-token }}
branding:
icon: 'upload-cloud'
color: 'blue'