Skip to content

Commit

Permalink
feat: Adds implementation for CI (looker-open-source#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rubio-go authored Jan 18, 2024
1 parent 7950a32 commit 2a0ea8e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions dist/bundle.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "",
"scripts": {
"prepare": "bin/bootstrap",
"build": "env NODE_OPTIONS='--openssl-legacy-provider' webpack --config webpack.config.js",
"build": "webpack --config webpack.config.js",
"build:legacy": "env NODE_OPTIONS='--openssl-legacy-provider' webpack --config webpack.config.js",
"start": "webpack-dev-server --open",
"watch": "env NODE_OPTIONS='--openssl-legacy-provider' webpack --config webpack.config.js --watch --progress",
"format": "prettier --ignore-path .gitignore --write src",
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 2a0ea8e

Please sign in to comment.