Skip to content

Commit

Permalink
feat: Adds CI implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rubio-go committed Jan 30, 2024
1 parent 8a60e55 commit 97ced72
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 97ced72

Please sign in to comment.