File tree Expand file tree Collapse file tree 4 files changed +400
-12
lines changed Expand file tree Collapse file tree 4 files changed +400
-12
lines changed Original file line number Diff line number Diff line change 9
9
name : Run ESLint
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v1
13
- - uses : actions/setup-node@v1
14
- with :
15
- node-version : ' 12.x'
16
- - run : npm install
17
- - run : npm run lint
12
+ - name : Checkout the repository
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Setup Node.js
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version-file : ' .nvmrc'
19
+
20
+ - name : Install dependencies
21
+ run : npm ci
22
+
23
+ - name : Run ESLint
24
+ run : npm run lint
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ publish :
8
+ name : Publish NPM package
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout the repository
12
+ uses : actions/checkout@v3
13
+
14
+ - name : Setup Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version-file : ' .nvmrc'
18
+
19
+ - name : Install dependencies
20
+ run : npm ci
21
+
22
+ - name : Run tests
23
+ run : npm test
24
+
25
+ - name : Publish package
26
+ uses : JS-DevTools/npm-publish@v2
27
+ with :
28
+ token : ${{ secrets.NPM_TOKEN_ORG }}
29
+ access : public
Original file line number Diff line number Diff line change
1
+ 18.17.1
You can’t perform that action at this time.
0 commit comments