File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Pre-release
2
+ on :
3
+ release :
4
+ types : [prereleased]
5
+
6
+ jobs :
7
+ npm :
8
+ name : Publish NPM package
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout repository
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Setup Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : ' 20.x'
18
+ registry-url : ' https://registry.npmjs.org'
19
+
20
+ - name : Install dependencies
21
+ run : npm ci
22
+
23
+ - name : Run linters
24
+ run : npm run lint:build
25
+
26
+ - name : Run tests
27
+ run : npm run test:build
28
+
29
+ - name : Build package
30
+ run : npm run dist
31
+
32
+ - name : Publish package
33
+ run : npm publish --tag next ./dist
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ release :
4
+ types : [released]
5
+
6
+ jobs :
7
+ npm :
8
+ name : Publish NPM package
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout repository
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Setup Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : ' 20.x'
18
+ registry-url : ' https://registry.npmjs.org'
19
+
20
+ - name : Install dependencies
21
+ run : npm ci
22
+
23
+ - name : Run linters
24
+ run : npm run lint:build
25
+
26
+ - name : Run tests
27
+ run : npm run test:build
28
+
29
+ - name : Build package
30
+ run : npm run dist
31
+
32
+ - name : Publish package
33
+ run : npm publish ./dist
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments