diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000..0c8ae07 --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,11 @@ +name: ci-workflow +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +jobs: + ci-build-job: + 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..b82099d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: ci-release-workflow + +on: + push: + branches: + - master + workflow_dispatch: + +# Cancels any release workflows in progress +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +jobs: + ci-release-job: + permissions: + contents: write + pull-requests: write + uses: looker-open-source/reusable-actions/.github/workflows/marketplace-viz-release.yml@main + # Inherits the Looker Automation Bot token to create release PRs and releases + secrets: inherit \ No newline at end of file diff --git a/package.json b/package.json index a029291..1970a76 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "scripts": { "build": "webpack --config webpack.config.js", + "build:legacy": "env NODE_OPTIONS='--openssl-legacy-provider' webpack", "watch": "webpack --config webpack.config.js --watch --progress" }, "devDependencies": { diff --git a/webpack.config.js b/webpack.config.js index 3a458af..4c2eabd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,8 +4,8 @@ var webpackConfig = { histogram: "./src/histogram.js", }, output: { - filename: "[name].js", - path: __dirname, + filename: "histogram.js", + path: path.join(path.resolve(__dirname), '/dist'), library: "[name]", libraryTarget: "umd", },