From 231fdae2e5fe25bcc475b280278eecddd04aeb4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Buben=C3=ADk?= Date: Wed, 24 Jan 2024 21:11:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Add=20run-after-install=20t?= =?UTF-8?q?o=20publish=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++---- publish/action.yml | 5 +++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 608fd10..424c72d 100644 --- a/README.md +++ b/README.md @@ -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 }} @@ -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` | [1] `"https://maven.localazy.com/repository/npm-private/"` diff --git a/publish/action.yml b/publish/action.yml index 5aa0ed4..21a5d06 100644 --- a/publish/action.yml +++ b/publish/action.yml @@ -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