Skip to content

Commit

Permalink
chore: fix workflow and add CodeSandbox to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SMAKSS committed Oct 19, 2022
1 parent 0896c48 commit e77689d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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}}
Expand All @@ -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}}
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}

0 comments on commit e77689d

Please sign in to comment.