Skip to content

Commit

Permalink
feat: add build-command
Browse files Browse the repository at this point in the history
  • Loading branch information
joshunrau committed Mar 30, 2024
1 parent 315d3e0 commit bcc3013
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches: ['main']
workflow_call:
inputs:
build-command:
required: false
type: string
secrets:
NPM_TOKEN:
required: true
Expand Down Expand Up @@ -32,6 +36,9 @@ jobs:
node-version: lts/*
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
if: ${{ inputs.build-command }}
run: ${{ inputs.build-command }}
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ jobs:
uses: joshunrau/semantic-release/.github/workflows/release.yaml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
build-command: pnpm build # optional
```

0 comments on commit bcc3013

Please sign in to comment.