Skip to content

Commit 067c0cc

Browse files
committed
add runkit definition to package.json
1 parent 8f8a5cb commit 067c0cc

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.tgz
33
.vscode
44
.github
5+
release.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Please consider:
88

99
- [Buying me a coffee](https://www.buymeacoffee.com/jeanlescure) :coffee:
1010
- Supporting me on [Patreon](https://www.patreon.com/jeanlescure) :trophy:
11-
- Starring this repo on [Github](https://github.com/jeanlescure/string-crypto) :star2: :octocat:
11+
- Starring this repo on [Github](https://github.com/jeanlescure/string-crypto) :star2:
1212

1313
## Usage
1414

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "string-crypto",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Small and and simple (yet secure) library to encrypt and decrypt strings using PBKDF2 for key derivation and AES (defaulted to 256-bit / SHA512)",
55
"main": "dist/index.js",
66
"author": "Jean M. Lescure",
77
"license": "Apache-2.0",
88
"types": "dist/index.d.ts",
9+
"runkitExampleFilename": "./runkit.js",
910
"scripts": {
1011
"build": "rollup -c",
1112
"dev": "concurrently \"rollup -cw\" \"nodemon --inspect runkit.js\"",

release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
npm login
3+
npm publish
4+
npm pack
5+
git tag -a v$(jq -r .version package.json) -m "Releasing version v$(jq -r .version package.json)"
6+
git push origin --tags
7+
npm adduser --registry=https://npm.pkg.github.com/
8+
read -n 1 -s -r -p "Add @ to package.json and press any key to continue"
9+
npm publish --registry=https://npm.pkg.github.com/

0 commit comments

Comments
 (0)