From 90c47fdb6562e74fab2cf34a795c5bc3eaff19a5 Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 17 Oct 2023 14:41:58 +0200 Subject: [PATCH] fix(ci): change the branch to push to Signed-off-by: julien --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88c7509b..685efbd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: Release on NPM on: - pull_request: + push: workflow_dispatch: inputs: version_type: @@ -21,7 +21,7 @@ concurrency: jobs: build-and-deploy: - name: Build and deploy package + name: Build and Deploy runs-on: ubuntu-latest steps: - name: Generate a token @@ -69,7 +69,7 @@ jobs: - name: Push to Correct Branch run: | - git push origin HEAD:${{ github.event.inputs.branch }} + git push origin HEAD:$(basename ${{ github.ref }}) - name: Publish to npm run: |