From 6fa2249ed17f39e0dbc6d4244cc3294cf4b2337b Mon Sep 17 00:00:00 2001 From: pix666 Date: Wed, 22 May 2024 22:29:01 +0400 Subject: [PATCH] fix release --- .github/workflows/build.yaml | 20 -------------------- .github/workflows/release.yaml | 2 +- package.json | 2 +- readme.md | 20 +++++++++++--------- 4 files changed, 13 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index ed8ac88..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Run Tests - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "22" - cache: "npm" - - name: Install NPM dependencies - run: npm ci - - name: Build NPM package - run: npm run build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fa5d824..cc66e69 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/package.json b/package.json index 7174582..0f9a8c2 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/readme.md b/readme.md index 4f1bcaa..3ef7a9d 100644 --- a/readme.md +++ b/readme.md @@ -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 - - + + ``` 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");