From d46ffd35024b78debc0ead73def660cc9db75c9d Mon Sep 17 00:00:00 2001 From: Alonso Cadenas Date: Mon, 22 May 2023 15:41:10 -0500 Subject: [PATCH] Enable github actions (#120) * Enable github actions * Use latest sdk version in demos * Set versions for demos --- .github/workflows/deploy.yml | 6 ++++-- .github/workflows/preview.yml | 8 +++++--- demos/demo-minimal-js/package-lock.json | 17 ++++++++++------- demos/demo-minimal-js/package.json | 4 ++-- demos/demo-react-ts/package-lock.json | 17 ++++++++++------- demos/demo-react-ts/package.json | 4 ++-- 6 files changed, 33 insertions(+), 23 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 92358d3c..b67188f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,11 @@ name: Deploy demo apps to GH Pages concurrency: ci-${{ github.ref }} on: - workflow_dispatch: push: - branches: [project-demo-v1] + branches: + - 'master' + paths: + - 'demos/**' defaults: run: diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 67de2d29..08c65f68 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -2,9 +2,11 @@ name: Deploy PR previews for demo apps run-name: ${{ github.actor }} is deploying a PR concurrency: preview-${{ github.ref }} on: - workflow_dispatch: - pull_request: - branches: ['*demo*'] + push: + branches: + - '!master' + paths: + - 'demos/**' defaults: run: diff --git a/demos/demo-minimal-js/package-lock.json b/demos/demo-minimal-js/package-lock.json index de082b54..997f3e84 100644 --- a/demos/demo-minimal-js/package-lock.json +++ b/demos/demo-minimal-js/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "license": "MIT", "dependencies": { - "@hubspot/calling-extensions-sdk": "^0.0.15-alpha.1" + "@hubspot/calling-extensions-sdk": "^0.1.0" }, "devDependencies": { "cross-env": "^7.0.3", @@ -32,9 +32,12 @@ } }, "node_modules/@hubspot/calling-extensions-sdk": { - "version": "0.0.15-alpha.1", - "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.0.15-alpha.1.tgz", - "integrity": "sha512-KauB37uuP+DppINH9NMQYceB4SMwr2IM+xUhFaYOFfAr86uRliTc9hgQaALAi5Z6rlWu6gwz8rx1+3AMsfhuIA==" + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.1.0.tgz", + "integrity": "sha512-F1H6Yv5UPOuajNlxslIZOpMbHbHyP5kHx2URwyHgnFKa2S/LvZFu4kZNTOo6jdpApXhYXGS8WZx1JnznNLY/kQ==", + "engines": { + "node": ">=14" + } }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.2", @@ -3479,9 +3482,9 @@ "dev": true }, "@hubspot/calling-extensions-sdk": { - "version": "0.0.15-alpha.1", - "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.0.15-alpha.1.tgz", - "integrity": "sha512-KauB37uuP+DppINH9NMQYceB4SMwr2IM+xUhFaYOFfAr86uRliTc9hgQaALAi5Z6rlWu6gwz8rx1+3AMsfhuIA==" + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.1.0.tgz", + "integrity": "sha512-F1H6Yv5UPOuajNlxslIZOpMbHbHyP5kHx2URwyHgnFKa2S/LvZFu4kZNTOo6jdpApXhYXGS8WZx1JnznNLY/kQ==" }, "@jridgewell/gen-mapping": { "version": "0.3.2", diff --git a/demos/demo-minimal-js/package.json b/demos/demo-minimal-js/package.json index 6ea4dc53..20394da1 100644 --- a/demos/demo-minimal-js/package.json +++ b/demos/demo-minimal-js/package.json @@ -1,6 +1,6 @@ { "name": "calling-extensions-sdk-demo-minimal-js", - "version": "0.0.1", + "version": "1.0.0", "description": "HubSpot calling extension sdk demo minimal js", "private": true, "scripts": { @@ -21,6 +21,6 @@ "webpack-dev-server": "^4.11.1" }, "dependencies": { - "@hubspot/calling-extensions-sdk": "^0.0.15-alpha.1" + "@hubspot/calling-extensions-sdk": "^0.1.0" } } diff --git a/demos/demo-react-ts/package-lock.json b/demos/demo-react-ts/package-lock.json index 15295281..951cf93c 100644 --- a/demos/demo-react-ts/package-lock.json +++ b/demos/demo-react-ts/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "license": "MIT", "dependencies": { - "@hubspot/calling-extensions-sdk": "^0.0.15-alpha.1", + "@hubspot/calling-extensions-sdk": "^0.1.0", "react": "^18.2.0", "react-aria": "^3.22.0", "react-dom": "^18.2.0", @@ -1946,9 +1946,12 @@ } }, "node_modules/@hubspot/calling-extensions-sdk": { - "version": "0.0.15-alpha.1", - "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.0.15-alpha.1.tgz", - "integrity": "sha512-KauB37uuP+DppINH9NMQYceB4SMwr2IM+xUhFaYOFfAr86uRliTc9hgQaALAi5Z6rlWu6gwz8rx1+3AMsfhuIA==" + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.1.0.tgz", + "integrity": "sha512-F1H6Yv5UPOuajNlxslIZOpMbHbHyP5kHx2URwyHgnFKa2S/LvZFu4kZNTOo6jdpApXhYXGS8WZx1JnznNLY/kQ==", + "engines": { + "node": ">=14" + } }, "node_modules/@internationalized/date": { "version": "3.1.0", @@ -9898,9 +9901,9 @@ } }, "@hubspot/calling-extensions-sdk": { - "version": "0.0.15-alpha.1", - "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.0.15-alpha.1.tgz", - "integrity": "sha512-KauB37uuP+DppINH9NMQYceB4SMwr2IM+xUhFaYOFfAr86uRliTc9hgQaALAi5Z6rlWu6gwz8rx1+3AMsfhuIA==" + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@hubspot/calling-extensions-sdk/-/calling-extensions-sdk-0.1.0.tgz", + "integrity": "sha512-F1H6Yv5UPOuajNlxslIZOpMbHbHyP5kHx2URwyHgnFKa2S/LvZFu4kZNTOo6jdpApXhYXGS8WZx1JnznNLY/kQ==" }, "@internationalized/date": { "version": "3.1.0", diff --git a/demos/demo-react-ts/package.json b/demos/demo-react-ts/package.json index 936c9fab..97899db0 100644 --- a/demos/demo-react-ts/package.json +++ b/demos/demo-react-ts/package.json @@ -1,6 +1,6 @@ { "name": "calling-integration-sdk-demo-react-ts", - "version": "0.1.0", + "version": "1.0.0", "description": "HubSpot calling integration sdk demo react ts", "private": true, "scripts": { @@ -18,7 +18,7 @@ "node": ">=14" }, "dependencies": { - "@hubspot/calling-extensions-sdk": "^0.0.15-alpha.1", + "@hubspot/calling-extensions-sdk": "^0.1.0", "react": "^18.2.0", "react-aria": "^3.22.0", "react-dom": "^18.2.0",