Skip to content

Commit

Permalink
Merge pull request #7 from lazaralex98/prt-180-ci-to-npm-publish
Browse files Browse the repository at this point in the history
PRT-180: CI to publish SDK on npmjs
  • Loading branch information
mauricedesaxe authored May 14, 2022
2 parents 6913a5a + 7f4de56 commit 888c713
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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\"",
Expand Down

0 comments on commit 888c713

Please sign in to comment.