diff --git a/package.json b/package.json index 337bb94..b3ca1ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kleros/scout", - "version": "0.1.4", + "version": "1.0.0", "description": "", "homepage": "https://contract-insight-snap.kleros.builders/", "bugs": { diff --git a/packages/site/package.json b/packages/site/package.json index 1fb8a27..00777a5 100644 --- a/packages/site/package.json +++ b/packages/site/package.json @@ -1,6 +1,6 @@ { "name": "@kleros/scout-site", - "version": "0.1.0", + "version": "1.0.0", "private": true, "license": "(MIT-0 OR Apache-2.0)", "scripts": { diff --git a/packages/snap/README.md b/packages/snap/README.md index c164d9f..e0a748e 100644 --- a/packages/snap/README.md +++ b/packages/snap/README.md @@ -2,6 +2,16 @@ This Snap pulls contract metadata from Kleros's decentralized token curated registries to provide insights to the contract you are interacting with. +## Publication to NPM + +1. Bump the version in `package.json` +1. Run a clean build: `yarn clean && yarn build` +1. Commit the change to git: `git add -u ; git commit -m "chore: release"` +1. Tag this version: `version=v$(cat package.json | jq -r .version) && git tag -m $version $version` +1. Push both commit and tag: `git push && git push --tags` +1. Export your NPM token: `export YARN_NPM_AUTH_TOKEN=` +1. Publish: `yarn publish` + ## Notes - This is an beta version of this Snap and is still going through constant iteration. diff --git a/packages/snap/package.json b/packages/snap/package.json index fb7c634..e959be3 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -1,6 +1,6 @@ { "name": "@kleros/scout-snap", - "version": "0.5.2", + "version": "1.0.0", "description": "A Metamask Snap that retrieves contract metadata from the Kleros Curate registries", "repository": { "type": "git", @@ -28,7 +28,8 @@ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore", "serve": "mm-snap serve", - "start": "mm-snap watch" + "start": "mm-snap watch", + "publish": "yarn npm publish --access public" }, "devDependencies": { "@lavamoat/allow-scripts": "^2.3.1", diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 4578383..dc5d4fe 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/kleros/scout-snap.git" }, "source": { - "shasum": "DmGgmcwy9MFw1bWIJs6wesNkGIx0Kn0/dFi6Q1AtKwg=", + "shasum": "PN6RaRgAWSel0csceOg3JD57metbCzVENDv0S2ONt1Q=", "location": { "npm": { "filePath": "dist/bundle.js",