From fe3144f461e41446dde5fbd716d9611f0e2d50ff Mon Sep 17 00:00:00 2001 From: David Gamero Date: Mon, 29 Jan 2024 15:04:23 -0500 Subject: [PATCH 1/2] migrate to new azure release workflow --- .github/workflows/release-pr.yml | 20 ++++++++++++-------- .github/workflows/tag-and-draft.yml | 10 ---------- 2 files changed, 12 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/tag-and-draft.yml diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index bf448990..6169e799 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -1,14 +1,18 @@ -name: Create release PR +name: Release Project on: + push: + branches: + - main + paths: + - CHANGELOG.md workflow_dispatch: - inputs: - release: - description: 'Define release version (ex: v1, v2, v3)' - required: true jobs: - release-pr: - uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main + release: + permissions: + actions: read + contents: write + uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@e4a1a0385530d6861c9a9b7262058ad33b10c769 with: - release: ${{ github.event.inputs.release }} + changelogPath: ./CHANGELOG.md diff --git a/.github/workflows/tag-and-draft.yml b/.github/workflows/tag-and-draft.yml deleted file mode 100644 index 2869a150..00000000 --- a/.github/workflows/tag-and-draft.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Tag and create release draft - -on: - push: - branches: - - releases/* - -jobs: - tag-and-release: - uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main From 9a26a978752587bd6d47c09604bf6d444b4ba64f Mon Sep 17 00:00:00 2001 From: David Gamero Date: Mon, 29 Jan 2024 17:00:55 -0500 Subject: [PATCH 2/2] format --- .github/workflows/release-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 6169e799..921469dd 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -11,8 +11,8 @@ on: jobs: release: permissions: - actions: read - contents: write + actions: read + contents: write uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@e4a1a0385530d6861c9a9b7262058ad33b10c769 with: changelogPath: ./CHANGELOG.md