From 756b98dc5288371c18963ec3b0bf1a4c25b39bb6 Mon Sep 17 00:00:00 2001 From: Ron Nuss Date: Mon, 31 Jul 2023 14:00:59 +0300 Subject: [PATCH] Fixed workflow and README --- .../workflows/npm-publish-github-packages.yml | 6 ++--- .github/workflows/publish.yml | 22 ------------------- README.md | 6 ++--- package.json | 2 +- 4 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 0b1bb4e..2186150 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -1,14 +1,14 @@ name: Publish Package on: - push: - branches: main + release: + types: [created] jobs: publish: runs-on: ubuntu-latest permissions: contents: read - packages: write # allow GITHUB_TOKEN to publish packages + packages: write steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index d2c090c..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Publish -on: - release: - types: [created] -jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 16 - - run: npm install - - run: | - echo https://npm.pkg.github.com/ > ./.npmrc - echo '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' >> ./.npmrc - - run: npm publish - env: - NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 35caacb..6d2fd3a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Hidabroot API _(unofficial)_ -![npm version](https://img.shields.io/badge/npm-v0.5.0_beta-blue) +![version](https://img.shields.io/github/package-json/v/itsrn/hidabroot/main) ![typescript](https://img.shields.io/badge/-TypeScript-blue) ![issues](https://img.shields.io/github/issues/itsrn/hidabroot) ![pull requests](https://img.shields.io/github/issues-pr/itsrn/hidabroot) @@ -13,13 +13,13 @@ _An (unofficial) API for Hidabroot_ ## Install ```bash -npm install hidabroot +npm install @itsrn/hidabroot ``` Or with yarn: ```bash -yarn add hidabroot +yarn add @itsrn/hidabroot ``` ## Features diff --git a/package.json b/package.json index f63739e..4fed7de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itsrn/hidabroot", - "version": "0.5.0-beta", + "version": "0.5.2-beta", "description": "An unofficial API for hidabroot", "main": "build/index.js", "types": "build/index.d.ts",