Skip to content

Commit

Permalink
🚀 Publish to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed May 29, 2024
1 parent a4c43e5 commit c826ffa
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 12 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CD

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ${{ matrix.operating-system }}

environment:
name: production
url: https://sigui.ci

permissions:
id-token: write
contents: read

defaults:
run:
working-directory: ./src

strategy:
matrix:
operating-system: [ubuntu-latest]
deno-version: [1.43.6]

name: 🚀 Deploy colorwind to JSR using Deno ${{ matrix.deno-version }}

steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4

- name: 🔨 Configure Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}

- name: 🚀 Publish to JSR
run: deno publish
60 changes: 48 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,63 @@ You can install the plugin :

- Using `npm`:

```bash
npm install colorwind
```
```bash
npm install colorwind
```

From `JSR`:

```bash
npx jsr add @siguici/colorwind
```

- Using `Yarn`:

```bash
yarn add colorwind
```
```bash
yarn add colorwind
```

From `JSR`:

```bash
yarn dlx jsr add @siguici/colorwind
```

- Using `PNPM`:

```bash
pnpm add colorwind
```
```bash
pnpm add colorwind
```

From `JSR`:

```bash
pnpm dlx jsr add @siguici/colorwind
```

- Using `Bun`:

```bash
bun install colorwind
```
```bash
bun install colorwind
```

From `JSR`:

```bash
bunx jsr add @siguici/colorwind
```

- Using `Deno`:

```bash
deno add @siguici/colorwind
```

Without install:

```bash
import colorwind from "jsr:@siguici/colorwind";
```

## 💡 Usage

Expand Down
5 changes: 5 additions & 0 deletions src/jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@siguici/colorwind",
"version": "0.0.0",
"exports": "./index.ts"
}

0 comments on commit c826ffa

Please sign in to comment.