diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a469d43 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Publish Package to npmjs +on: + # Runs when release activity occurs. + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: "16.x" + registry-url: "https://registry.npmjs.org" + - run: yarn + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index af77920..2da4030 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "toucan-sdk", - "version": "0.1.0", - "description": "Toucan Protocol SDK", - "main": "index.js", + "version": "0.1.1-alpha", + "description": "A JavaScript SDK for Toucan Protocol. Works in the web browser and Node.js.", + "main": "index.ts", "scripts": { "build": "tsc", "format:check": "prettier --check \"**/*.ts\"",