Skip to content

Commit

Permalink
feat: Adds ci implementation (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rubio-go authored Mar 18, 2024
1 parent ffa75eb commit c2dbae8
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 187 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
.vscode
.DS_Store
dist/

185 changes: 0 additions & 185 deletions calendar_chart.js

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "",
"scripts": {
"build": "webpack --config webpack.config.js",
"build:legacy": "env NODE_OPTIONS='--openssl-legacy-provider' webpack",
"start": "webpack-dev-server --open",
"watch": "webpack --config webpack.config.js --watch --progress",
"format": "prettier --ignore-path .gitignore --write '**/*.js'"
Expand Down Expand Up @@ -49,3 +50,4 @@
"d3-selection": "1.3.0"
}
}

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: "bundle.js",
path: path.join(path.resolve(__dirname), "/dist"),
library: "[name]",
libraryTarget: "umd",
},
Expand Down

0 comments on commit c2dbae8

Please sign in to comment.