Skip to content

Commit

Permalink
✨ feat: Add run-after-install to publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Jan 24, 2024
1 parent e08f91c commit 231fdae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,14 @@ jobs:
### Run code after install

```diff
prepare:
name: Prepare Release PR
jobs:
publish:
name: Publish Release
needs: ci
if: needs.ci.outputs.action == 'prepare'
if: needs.ci.outputs.action == 'publish'
runs-on: [ self-hosted, Linux ]
steps:
- uses: localazy/release/prepare@v2
- uses: localazy/release/publish@v2
with:
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
Expand Down Expand Up @@ -187,6 +188,7 @@ jobs:
| `npm-build` | Build package command. Only executed if `npm-publish` is set. | `false` | `npm run build --if-present` |
| `major-bump` | Bump major version tag after release. | `false` | `false` |
| `major-bump-tag-prefix` | Major version tag prefix. | `false` | `""` |
| `run-after-install` | Bash code to run after npm install. | `false` | `""` |
| `node-version` | Node version. | `false` | `16` |

<small>[1]</small> `"https://maven.localazy.com/repository/npm-private/"`
Expand Down
5 changes: 5 additions & 0 deletions publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ inputs:
required: false
default: ''

run-after-install:
description: Bash code to run after npm install.
required: false
default: ''

node-version:
description: Node version.
required: false
Expand Down

0 comments on commit 231fdae

Please sign in to comment.