From a66c805daf86d1cafb60c85a2f346005d1bfc07e Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Sun, 4 Jun 2023 21:34:31 -0700 Subject: [PATCH] ci: release @parkerbxyz I implemented the automated release as you suggested, using a dedicated GitHub App and the new branch rules which indeed seem to support excluding apps from the rules. Looking forward to see if this will work! --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e0d1c9b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: release +"on": + push: + branches: + - main + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache: npm + node-version: lts/* + - run: npm ci + - run: npm run build + - uses: ./ # Uses the action in the root directory + id: app-token + with: + app_id: ${{ vars.RELEASER_APP_ID }} + private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} + + - id: commit + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "build: update dist files" + - run: npm i semantic-release-plugin-github-breaking-version-tag + - run: npx semantic-release + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}