From afbdb5a4b147a867f1bb880ed74a77ed93e6c14c Mon Sep 17 00:00:00 2001 From: Justin Schell Date: Tue, 2 Jul 2024 22:40:55 +0000 Subject: [PATCH] build custom plotly github action --- .github/workflows/lint-and-build.yml | 15 +++++++++++++++ .gitignore | 1 + 2 files changed, 16 insertions(+) create mode 100644 .github/workflows/lint-and-build.yml diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml new file mode 100644 index 00000000000..40db64d4885 --- /dev/null +++ b/.github/workflows/lint-and-build.yml @@ -0,0 +1,15 @@ +name: Lint & Build Custom Plotly.js +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + - run: npm ci + - run: npm run lint + - run: npm run custom-bundle -- --traces pie,bar,sunburst --transforms none + - uses: actions/upload-artifact@v4 + with: + name: plotly-custom.min.js + path: dist/plotly-custom.min.js diff --git a/.gitignore b/.gitignore index 40e49228498..37e0a0bd2d4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ tags !.npmignore !.eslintrc !.eslintignore +!.github \ No newline at end of file