-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
35 lines (28 loc) · 852 Bytes
/
action.yml
File metadata and controls
35 lines (28 loc) · 852 Bytes
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
name: "Catho node custom action"
description: "Action to start action node jobs"
inputs:
npm-token:
description: "NPM Token to create .npmrc file"
required: false
default: ""
working-directory:
description: "Working directory"
required: false
default: ./
runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v3
- run: touch .npmrc
shell: bash
working-directory: ${{ inputs.working-directory }}
- run: echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ./.npmrc
shell: bash
working-directory: ${{ inputs.working-directory }}
if: ${{ inputs.npm-token != '' }}
- run: npm install
shell: bash
working-directory: ${{ inputs.working-directory }}