Skip to content

Commit 2c867dc

Browse files
committed
ci: add egg.json and publish workflow
1 parent 9624dff commit 2c867dc

File tree

5 files changed

+51
-14
lines changed

5 files changed

+51
-14
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
publish-egg:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: denoland/setup-deno@v1
14+
with:
15+
deno-version: v1.x
16+
- run: deno install -A -f --unstable --no-check https://x.nest.land/[email protected]/eggs.ts
17+
- run: |
18+
export PATH="/home/runner/.deno/bin:$PATH"
19+
eggs link ${{ secrets.NESTAPIKEY }}
20+
eggs publish --yes

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Redis Adapter
1+
name: Test
22
on:
33
push:
44
branches-ignore: main
@@ -11,8 +11,8 @@ jobs:
1111
deno-version: [1.11.x]
1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: Use Deno ${{ matrix.deno-version}}
15-
uses: denolib/setup-deno@master
14+
- name: Use Deno ${{ matrix.deno-version }}
15+
uses: denoland/setup-deno@v1
1616
with:
1717
deno-version: ${{ matrix.deno-version }}
1818
- run: ./scripts/test.sh

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# hyper63 redis adapter
1+
# hyper-adapter-redis
2+
3+
[![nest badge](https://nest.land/badge.svg)](https://nest.land/package/hyper-adapter-redis)
4+
[![current version](https://img.shields.io/github/tag/hyper63/hyper-adapter-redis)](https://github.com/hyper63/hyper-adapter-redis/tags/)
5+
[![test status](https://github.com/hyper63/hyper-adapter-redis/workflows/.github/workflows/test.yml/badge.svg)](https://github.com/hyper63/hyper-adapter-redis/actions/workflows/test.yml)
26

37
This adapter works for the 'cache' port.
48

egg.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://x.nest.land/[email protected]/src/schema.json",
3+
"name": "hyper-adapter-redis",
4+
"entry": "./mod.js",
5+
"description": "Hyper Cache port adapter for redis",
6+
"homepage": "https://github.com/hyper63/hyper-adapter-redis",
7+
"repo": "https://github.com/hyper63/hyper-adapter-redis",
8+
"version": "1.2.7",
9+
"unstable": false,
10+
"unlisted": false,
11+
"files": [
12+
"./*"
13+
],
14+
"ignore": [
15+
"./package.json",
16+
"./scripts/*",
17+
"./.git*"
18+
],
19+
"checkFormat": false,
20+
"checkTests": false,
21+
"checkInstallation": false,
22+
"check": false
23+
}

package.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)