From 0466a80270eaeae52c0b8254381fce7c8460c3e6 Mon Sep 17 00:00:00 2001 From: Andres Rubio Date: Tue, 23 Jan 2024 16:43:19 +0000 Subject: [PATCH 1/3] feat: Adds CI implementation --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index b4d0b90..17b0f1f 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,8 +11,8 @@ var webpackConfig = { contentBase: "./dist", }, output: { - filename: "[name].js", - path: __dirname, + filename: "dist/bundle.js", + path: path.resolve(__dirname), library: "[name]", libraryTarget: "umd", }, From a8ce4ab3567c8613c081c811fea74084ffa9ccb4 Mon Sep 17 00:00:00 2001 From: Andres Rubio Date: Wed, 24 Jan 2024 20:29:30 +0000 Subject: [PATCH 2/3] feat: Adds ci implementation --- .github/workflows/ci-build.yml | 6 ++++++ .github/workflows/release.yml | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/ci-build.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000..dfe249d --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,6 @@ +name: ci-build +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + uses: looker-open-source/reusable-actions/.github/workflows/marketplace-viz-ci-build.yml@main \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..613e6f2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: release + +on: + workflow_dispatch: + push: + branches: + - master + +# Cancels an release workflows in progress +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +jobs: + release: + permissions: + contents: write + pull-requests: write + uses: looker-open-source/reusable-actions/.github/workflows/marketplace-viz-release.yml@main + secrets: inherit \ No newline at end of file From 865f5ef976f894b24d695f47a601243d8a01029f Mon Sep 17 00:00:00 2001 From: Andres Rubio Date: Wed, 24 Jan 2024 20:38:25 +0000 Subject: [PATCH 3/3] fix: webpack config --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 17b0f1f..a9febf5 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,8 +11,8 @@ var webpackConfig = { contentBase: "./dist", }, output: { - filename: "dist/bundle.js", - path: path.resolve(__dirname), + filename: "dist/packed_bubble.js", + path: path.join(path.resolve(__dirname), "/dist"), library: "[name]", libraryTarget: "umd", },