From 1d6e407a6173d0006992e6cb7c816d485c10aa7a Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 5 Feb 2024 13:31:27 +0000 Subject: [PATCH] Update release action to run on tag push so that pub publish works; fixed github api typo --- .github/workflows/on-release.yml | 10 +++++----- .release-please-manifest.json | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 4d6d1bde..fa3879e3 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -1,8 +1,8 @@ name: "CI - Release" on: - workflow_dispatch: - release: - types: [released] + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" jobs: check-package: @@ -29,11 +29,11 @@ jobs: deploy-website: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | - await github.rest.actions.createworkflowDispatch({ + await github.rest.actions.createWorkflowDispatch({ owner: 'zebratechnologies', repo: 'zeta', workflow_id: 'deploy-prod.yml', diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6b7b74c5..44c32041 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,4 @@ { - ".": "0.3.0" + ".": "0.3.0", + "include-component-in-tag": false } \ No newline at end of file