Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Jun 29, 2023
1 parent f185cd9 commit 4b9c5e3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kleros/scout",
"version": "0.1.4",
"version": "1.0.0",
"description": "",
"homepage": "https://contract-insight-snap.kleros.builders/",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
10 changes: 10 additions & 0 deletions packages/snap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<npm_xxxxxxxxxxxx>`
1. Publish: `yarn publish`

## Notes

- This is an beta version of this Snap and is still going through constant iteration.
Expand Down
5 changes: 3 additions & 2 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/kleros/scout-snap.git"
},
"source": {
"shasum": "DmGgmcwy9MFw1bWIJs6wesNkGIx0Kn0/dFi6Q1AtKwg=",
"shasum": "PN6RaRgAWSel0csceOg3JD57metbCzVENDv0S2ONt1Q=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down

0 comments on commit 4b9c5e3

Please sign in to comment.