Skip to content

Commit

Permalink
packages publish CI workflow, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bukhalo committed Jul 3, 2024
1 parent 295aa10 commit 02d591c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- run: npx jsr publish
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ deno add @bukhalo/wol
Or add package without install step:

```typescript
import { wol } from "jsr:@bukhalo/wol";
import { wake } from "jsr:@bukhalo/wol";
```

Execute `wake` function from package:

```typescript
import { wol } from "@bukhalo/wol";
import { wake } from "@bukhalo/wol";

wake("00:00:00:00:00:00");
```
Expand Down
5 changes: 4 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bukhalo/wol",
"version": "2.0.0",
"version": "2.0.1",
"exports": "./mod.ts",
"tasks": {
"lint": "deno fmt",
Expand All @@ -9,5 +9,8 @@
},
"imports": {
"@std/bytes": "jsr:@std/bytes@^1.0.1"
},
"publish": {
"exclude": [".github"]
}
}
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { magicPacket } from "./magic_packet.ts";
export { wake } from "./wake.ts";
export { wake, wake as wol } from "./wake.ts";

0 comments on commit 02d591c

Please sign in to comment.