From 900c6a279bbffd5cba955f1bf1cdb76f6e2005b5 Mon Sep 17 00:00:00 2001 From: Kyle Jackson <191288016+PEAC337@users.noreply.github.com> Date: Tue, 9 Dec 2025 00:16:22 -0600 Subject: [PATCH] Add GitHub Actions workflow for publishing releases --- .github/workflows/publish-release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish-release.yml diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml new file mode 100644 index 000000000000..06c5f438830b --- /dev/null +++ b/.github/workflows/publish-release.yml @@ -0,0 +1,25 @@ +name: Publish Release + +on: + pull_request: + types: [closed] + +jobs: + publish-release: + permissions: + contents: write + if: | + github.event.pull_request.merged == true && + startsWith(github.event.pull_request.head.ref, 'release/') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Get Node.js version + id: nvm + run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) + - uses: actions/setup-node@v2 + with: + node-version: ${{ steps.nvm.outputs.NODE_VERSION }} + - uses: MetaMask/action-publish-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}