Skip to content

Commit d343053

Browse files
authored
chore(ci): added publish github actions
1 parent 4f4fd77 commit d343053

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 }}

0 commit comments

Comments
 (0)