Skip to content

[ci] build

[ci] build #4

Workflow file for this run

# local build for automation repo scripts
name: build
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: bot-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.bot-token.outputs.token }}
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Commit dist
run: |
git config user.name "bombshell-bot"
git config user.email "bombshell-bot[bot]@users.noreply.github.com"
git add -f dist/
git diff --staged --quiet && echo "No changes" || git commit -m "[ci] build" && git push