Update README.md #11
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: NodeJS 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: actions/setup-node@v4 | |
with: | |
node-version: 22.5.1 | |
- name: Installing dependencies.. | |
run: npm 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 |