From c97483a3927ca13ba6dfce832e8556932af0dd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mendoza=20P=C3=A9rez?= Date: Tue, 6 Jul 2021 18:29:26 +0200 Subject: [PATCH] added workflow deploy npmjs registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Mendoza Pérez --- .github/workflows/npmjs-release.yml | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/npmjs-release.yml 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",