Skip to content

Commit d6f53db

Browse files
committed
added nest publishing
1 parent ada91e2 commit d6f53db

File tree

5 files changed

+48
-7
lines changed

5 files changed

+48
-7
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
pull_request:
1111
branches:
1212
- master
13-
release:
14-
types: [ published ]
1513

1614
jobs:
1715
tests:

.github/workflows/publish_nest.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Egg
2+
3+
env:
4+
DENO_VERSION: 1.4.6
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
publish-egg:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- uses: denolib/setup-deno@master
17+
with:
18+
deno-version: ${{env.DENO_VERSION}}
19+
20+
- run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.2.3/mod.ts
21+
- run: |
22+
export PATH="/home/runner/.deno/bin:$PATH"
23+
eggs link ${{ secrets.NESTAPIKEY }}
24+
eggs publish

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Oak Middleware JWT
2-
2+
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/halvardssm/oak-middleware-jwt?logo=deno&style=flat-square)](https://github.com/halvardssm/oak-middleware-jwt)
33
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/halvardssm/oak-middleware-jwt/CI/master?style=flat-square&logo=github)](https://github.com/halvardssm/oak-middleware-jwt/actions?query=branch%3Amaster+workflow%3ACI)
44
[![(Deno)](https://img.shields.io/badge/deno-v1.4.6-green.svg?style=flat-square&logo=deno)](https://deno.land)
55
[![(Deno)](https://img.shields.io/badge/oak-v6.3.1-orange.svg?style=flat-square&logo=deno)](https://github.com/oakserver/oak)
66
[![(Deno)](https://img.shields.io/badge/djwt-v1.7-orange.svg?style=flat-square&logo=deno)](https://github.com/oakserver/oak)
77
[![deno doc](https://img.shields.io/badge/deno-doc-blue.svg?style=flat-square&logo=deno)](https://doc.deno.land/https/raw.githubusercontent.com/halvardssm/oak-middleware-jwt/master/mod.ts)
8+
[![nest badge](https://nest.land/badge-block.svg)](https://nest.land/package/Nessie)
89

910
Oak middleware for JWT
1011

deps.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ export {
44
} from "https://deno.land/std@0.74.0/testing/asserts.ts";
55
export {
66
JwtObject,
7-
Validation,
8-
validateJwt,
97
JwtValidation,
8+
validateJwt,
9+
Validation,
1010
} from "https://deno.land/x/djwt@v1.7/validate.ts";
1111
export {
12+
Algorithm,
1213
Jose,
1314
makeJwt,
1415
Payload,
15-
Algorithm,
1616
setExpiration,
1717
} from "https://deno.land/x/djwt@v1.7/create.ts";
1818
export { createHttpError } from "https://deno.land/x/oak@v6.3.1/httpError.ts";
1919
export {
2020
Context,
21+
HTTPMethods,
2122
Middleware,
2223
RouterContext,
2324
RouterMiddleware,
24-
HTTPMethods,
2525
Status,
2626
} from "https://deno.land/x/oak@v6.3.1/mod.ts";

egg.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Oak Middleware JWT",
3+
"entry": "./mod.ts",
4+
"description": "Oak middleware for JWT validation using djwt",
5+
"homepage": "https://github.com/halvardssm/oak-middleware-jwt",
6+
"version": "1.0.0",
7+
"files": [
8+
"./mod.ts",
9+
"./deps.ts",
10+
"./src/**/*",
11+
"./README.md",
12+
"./LICENSE"
13+
],
14+
"checkFormat": false,
15+
"checkTests": false,
16+
"checkInstallation": false,
17+
"check": false
18+
}

0 commit comments

Comments
 (0)