Update bundler compatibility #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Bundle | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
- name: Set up Node.js | |
uses: actions/setup-node@main | |
- name: Install dependencies | |
run: npm install | |
- name: Build bundle | |
run: npx rollup --config rollup.config.js --configPlugin typescript | |
- name: Remove "export.*" lines from bundle | |
run: sed -i '/^export.*/d' output/index.js | |
- name: Upload artifact | |
uses: actions/upload-artifact@main | |
with: | |
name: index.js | |
path: output/index.js |