From e77689d768e0fcdc48571055008ed8d309b7f612 Mon Sep 17 00:00:00 2001 From: MAKSS Date: Wed, 19 Oct 2022 16:02:39 +0330 Subject: [PATCH] chore: fix workflow and add CodeSandbox to readme --- .github/workflows/npm-publish.yml | 24 ++++++++++++------------ Readme.md | 4 ++++ package.json | 24 ++++++++++++------------ 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 41fe90e..a480b4f 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,7 +1,7 @@ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages -name: '@smakss/password-generator' +name: "@smakss/password-generator" on: release: @@ -11,21 +11,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 16 publish-npm: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 16 registry-url: https://registry.npmjs.org/ - scope: '@smakss' + scope: "@smakss" - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -34,12 +34,12 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 16 registry-url: https://npm.pkg.github.com/ - scope: '@smakss' + scope: "@smakss" - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/Readme.md b/Readme.md index 9d2d148..ae38733 100644 --- a/Readme.md +++ b/Readme.md @@ -76,3 +76,7 @@ PasswordGenerator({ length: 10, characters: ["a", 1, "~"] }); ## Demo You can check the [working demo](https://runkit.com/smakss/password-generator) in runkit. + +or + +[![View @smakss/password-generator](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/smakss-password-generator-o9ev4k?fontsize=14&hidenavigation=1&theme=dark) \ No newline at end of file diff --git a/package.json b/package.json index eb5b07d..d65fdd9 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,14 @@ { - "name": "@smakss/password-generator", - "version": "1.1.3", + "author": "SMAKSS", + "bugs": { + "url": "https://github.com/SMAKSS/password-generator/issues" + }, "description": "Generate random password.", - "type": "module", - "main": "./index.cjs", "exports": { "import": "./index.mjs", "require": "./index.cjs" }, - "repository": { - "type": "git", - "url": "git+https://github.com/SMAKSS/password-generator.git" - }, + "homepage": "https://github.com/SMAKSS/password-generator#readme", "keywords": [ "npm", "yarn", @@ -22,10 +19,13 @@ "Password-Generator", "Random-Password-Generator" ], - "author": "SMAKSS", "license": "MIT", - "bugs": { - "url": "https://github.com/SMAKSS/password-generator/issues" + "main": "./index.cjs", + "name": "@smakss/password-generator", + "repository": { + "type": "git", + "url": "git+https://github.com/SMAKSS/password-generator.git" }, - "homepage": "https://github.com/SMAKSS/password-generator#readme" + "type": "module", + "version": "1.1.4" }