File tree 2 files changed +32
-5
lines changed
2 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 1
- # (WIP) checkout-node-project
2
- A custom GitHub Action to checkout and initialize a Node project
1
+ # ` checkout-node-project `
2
+
3
+ A simple composite GitHub Action to checkout and initialize a Node project.
4
+
5
+ ## Usage
6
+
7
+ Remove boilerplate to initialize your node project, so you can replace...
8
+
9
+ ``` yaml
10
+ steps :
11
+ - name : Checkout your branch
12
+ uses : actions/checkout@v3
13
+
14
+ - name : Then install Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 16.x
18
+
19
+ - name : Then install dependencies
20
+ run : npm ci
21
+ ` ` `
22
+ with...
23
+ ` ` ` yaml
24
+ steps :
25
+ - name : All above steps in one!
26
+ uses :
adamhamlin/[email protected]
27
+ with :
28
+ node-version : 16.x
29
+ ` ` `
Original file line number Diff line number Diff line change 1
1
name : ' Checkout Node Project'
2
- description : ' Checkout branch , install Node, and run `npm ci`'
2
+ description : ' Checkout, install Node, and run `npm ci`'
3
3
4
4
inputs :
5
5
node-version :
6
- description : Nodejs version to install
7
- required : true
6
+ description : Node.js version to install
7
+ required : false
8
8
default : 16.x
9
9
10
10
runs :
You can’t perform that action at this time.
0 commit comments