From 147104aac2dbe0008c01576ddd7c026dd8e1b691 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Wed, 13 Dec 2023 09:34:00 +0100 Subject: [PATCH] Align release process by supporting release-directory (#696) --- .github/actions/get-release-notes/action.yml | 2 +- .github/actions/publish-package/action.yml | 3 +++ .github/workflows/release.yml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/actions/get-release-notes/action.yml b/.github/actions/get-release-notes/action.yml index 846aa45c..c89b51a1 100644 --- a/.github/actions/get-release-notes/action.yml +++ b/.github/actions/get-release-notes/action.yml @@ -6,7 +6,7 @@ name: Return the release notes extracted from the PR body # TODO: Remove once the common repo is public. # inputs: - version : + version: required: true repo_name: required: false diff --git a/.github/actions/publish-package/action.yml b/.github/actions/publish-package/action.yml index c9cc11cd..abbfcaaa 100644 --- a/.github/actions/publish-package/action.yml +++ b/.github/actions/publish-package/action.yml @@ -7,6 +7,8 @@ inputs: required: true version: required: true + release-directory: + default: './' runs: using: composite @@ -29,6 +31,7 @@ runs: - name: Publish release to NPM shell: bash + working-directory: ${{ inputs.release-directory }} run: | if [[ "${VERSION}" == *"beta"* ]]; then TAG="beta" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f5cf658..9b3db000 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: uses: ./.github/actions/get-prerelease with: version: ${{ steps.get_version.outputs.version }} - + # Get the release notes # This will expose the release notes as env.RELEASE_NOTES - id: get_release_notes