diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5af2ec0..870acd7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,6 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org/ - run: npm install - - run: npm publish --access public --tag next + - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/README.md b/README.md index d6938f2..1d64c90 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Patch Javascript SDK ![Test](https://github.com/patch-technology/patch-node/workflows/Test/badge.svg) +[![npm version](https://badge.fury.io/js/%40patch-technology%2Fpatch@2x.png)](https://badge.fury.io/js/%40patch-technology%2Fpatch) [![Discord](https://img.shields.io/discord/733029448558837792)](https://discord.gg/M23NnGR) The official Javascript package for the [Patch API](https://www.usepatch.com) @@ -39,7 +40,7 @@ import Patch from '@patch-technology/patch'; const patch = Patch('key_test_1234'); // ES5 -var patch = require('@patch-technology/patch')('key_test_1234'); +var patch = require('@patch-technology/patch').default('key_test_1234'); ``` ### Orders diff --git a/package.json b/package.json index 9348b45..6e73c31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@patch-technology/patch", - "version": "1.0.0-rc.2", + "version": "1.0.0", "description": "Javascript wrapper for the Patch API", "license": "MIT", "repository": { @@ -48,6 +48,17 @@ "files": [ "dist" ], + "keywords": [ + "carbon", + "offset", + "patch", + "sustainability", + "carbon neutral", + "carbon removal", + "carbon sequestration", + "trees", + "api" + ], "husky": { "hooks": { "pre-commit": "npx prettier --write ."