-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
61 lines (59 loc) · 1.64 KB
/
Copy pathaction.yml
File metadata and controls
61 lines (59 loc) · 1.64 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: Setup
description: Setup Node.js and install dependencies.
inputs:
node_auth_token:
description: The Node.js auth token.
required: true
node_version:
description: The Node.js version.
required: false
default: '24'
registry_url:
description: The Node.js package registry URL.
required: false
default: https://npm.pkg.github.com
install_dependencies:
description: Install dependencies.
required: false
default: 'true'
runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
if: inputs.install_dependencies == 'true'
with:
cache: npm
node-version: ${{ inputs.node_version }}
registry-url: ${{ inputs.registry_url }}
- name: Setup Node.js without cache
uses: actions/setup-node@v3
if: inputs.install_dependencies == 'false'
with:
node-version: ${{ inputs.node_version }}
registry-url: ${{ inputs.registry_url }}
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
6.0.x
- name: Setup CSharpier
shell: bash
run: dotnet tool install csharpier -g --version 0.29.2
- name: Install dependencies
if: inputs.install_dependencies == 'true'
shell: bash
run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ inputs.node_auth_token }}
- name: Rebuild Node.js modules
shell: bash
run: npm rebuild
- name: Run postinstall script
shell: bash
run: npm run postinstall --if-present
- name: Run prepare script
shell: bash
run: npm run prepare --if-present