diff --git a/.github/workflows/npmjs-release.yml b/.github/workflows/npmjs-release.yml new file mode 100644 index 00000000..2adee8a9 --- /dev/null +++ b/.github/workflows/npmjs-release.yml @@ -0,0 +1,21 @@ +name: npmjs release + +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v2 + with: + node-version: '15.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm test + - run: npm run build + - run: cd dist && npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 5a34c46d..63b7b0cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@severlessworkflow/sdk-typescript", - "version": "0.6.0", + "version": "0.6.1", "description": "Typescript SDK for Serverless Workflow Specification", "main": "umd/index.umd.min.js", "browser": "umd/index.umd.min.js",