Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
pix666 committed May 22, 2024
1 parent 2fa8d17 commit 6fa2249
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 31 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
- name: Build NPM package
run: npm run build
- name: Publish NPM package
run: npm publish
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@paper/checkbox-tree",
"name": "paper-checkbox-tree",
"version": "0.1.0",
"description": "A JavaScript component that transforms a select element into a checkbox tree.",
"keywords": [
Expand Down
20 changes: 11 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
# @paper/checkbox-tree
# paper-checkbox-tree

![Version](https://img.shields.io/npm/v/@paper/checkbox-tree)
![License](https://img.shields.io/npm/l/@paper/checkbox-tree)
![Version](https://img.shields.io/npm/v/paper-checkbox-tree)
![License](https://img.shields.io/npm/l/paper-checkbox-tree)

## Description

`@paper/checkbox-tree` is a JavaScript component that transforms a select element into a checkbox tree.
`paper-checkbox-tree` is a JavaScript component that transforms a select element into a checkbox tree.

![image](https://github.com/dldevinc/paper-checkbox-tree/assets/6928240/9aef1bd2-8717-4322-abde-2c41e301107b)

## Installation

You can include the library directly in your HTML file from the CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/@paper/checkbox-tree"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@paper/checkbox-tree/dist/index.css">
<script src="https://cdn.jsdelivr.net/npm/paper-checkbox-tree"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/paper-checkbox-tree/dist/index.css">
```

Alternatively, you can install the library via npm:

```bash
npm install @paper/checkbox-tree
npm install paper-checkbox-tree
```

## Usage

```js
import CheckboxTree from "@paper/checkbox-tree";
import "@paper/checkbox-tree/dist/index.css";
import CheckboxTree from "paper-checkbox-tree";
import "paper-checkbox-tree/dist/index.css";

// Example usage:
const selectElement = document.getElementById("your-select-element");
Expand Down

0 comments on commit 6fa2249

Please sign in to comment.