YOU DONT KNOW ME SON #19
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 esbuild | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setting environment... | |
uses: oven-sh/setup-bun@v2 # fuck it just switch to bun | |
- name: Installing dependencies.. | |
run: bun install -g esbuild | |
- name: Building project.. ( esbuild ) | |
run: esbuild --bundle src/Main.ts --outfile=out/plugin.js --sourcemap=inline # custom | |
env: | |
NODE_ENV: production | |
- name: Write changes to repository | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
- name: bad devs!!!!! | |
if: failure() | |
run: exit 1 |