File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ build-and-publish :
9
+ runs-on : ubuntu-latest
10
+ services :
11
+ redis :
12
+ image : redis
13
+ ports :
14
+ - 6379:6379
15
+ redis-cluster :
16
+ image : grokzen/redis-cluster:7.0.10
17
+ ports :
18
+ - 7006:7000
19
+ - 7001:7001
20
+ - 7002:7002
21
+ - 7003:7003
22
+ - 7004:7004
23
+ - 7005:7005
24
+ strategy :
25
+ matrix :
26
+ node-version : [lts/*]
27
+
28
+ steps :
29
+ - name : Checkout code
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Set up Node.js
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version : ${{ matrix.node-version }}
36
+ cache : ' npm'
37
+
38
+ - name : Install Dependencies
39
+ run : npm ci
40
+
41
+ - name : Publish to npm
42
+ run : npm publish --provenance --access public
43
+ env :
44
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments