Skip to content

Commit

Permalink
chore: add publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ooker777 committed Aug 14, 2024
1 parent f7116f5 commit 9b30742
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
7 changes: 2 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@ooker777/lume-mermaid-plugin",
"version": "0.1",
"exports": "./mod.js",
"imports": {
"lume/": "https://deno.land/x/[email protected]/"
}
"version": "0.1.1",
"exports": "./mod.js"
}
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## How to use
In your `_config.ts` file, add these lines:
```ts
import mermaid from "https://deno.land/x/lume_mermaid_plugin/mod.ts";
import mermaid from "@ooker777/lume-mermaid-plugin/";
// or
// import mermaid from "https://deno.land/x/lume_mermaid_plugin/mod.ts";

site.use(mermaid())
```
Expand Down

0 comments on commit 9b30742

Please sign in to comment.