Skip to content

Commit

Permalink
feat: Adds ci implementation (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rubio-go authored Feb 15, 2024
1 parent d5492c7 commit 534accf
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.DS_STORE
dist/
12 changes: 6 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ var path = require("path");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");

var webpackConfig = {
mode: 'production',
mode: "production",
entry: {
aster_plot: "./src/aster_plot_src.js",
},
output: {
filename: "[name].js",
path: __dirname,
filename: "bundle.js",
path: path.join(path.resolve(__dirname), "/dist"),
library: "[name]",
libraryTarget: "umd"
libraryTarget: "umd",
},
plugins: [new UglifyJSPlugin()],
}
};

module.exports = webpackConfig;
module.exports = webpackConfig;

0 comments on commit 534accf

Please sign in to comment.