Update bun-build.yml #2
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: BunJS with Bun Build | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Bun.js | |
uses: oven-sh/setup-bun@v2 | |
- name: Build | |
run: | | |
bun build --bundle ./src/Main.ts --outdir=out/ --outfile=out/plugin.js --target browser --entry-naming EaglerForge-[hash].js | |
- name: Write changes to repository | |
uses: stefanzweifel/git-auto-commit-action@v4 |