diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index bf448990..921469dd 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