Skip to content

ref: add packageManager (#9) #2

ref: add packageManager (#9)

ref: add packageManager (#9) #2

Workflow file for this run

# local build for automation repo scripts
name: build
on:
push:
branches: [main]
paths: ["src/**", "package.json"]
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
uses: stefanzweifel/git-auto-commit-action@v5
env:
GH_TOKEN: ${{ steps.bot-token.outputs.token }}
with:
commit_message: "[ci] build"
file_pattern: "dist/*"
commit_user_name: bombshell-bot