From d70089d0a92779dd4cdf5d4268a78e17b0f73530 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Mon, 29 Jul 2024 12:08:02 -0700 Subject: [PATCH] chore(ci): add a release job --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..74d05ab --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +concurrency: + group: ${{ github.workflow }} + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: main + - uses: ./.github/actions/prepare + - run: npm build + - env: + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + uses: JoshuaKGoldberg/release-it-action@v0.2.2 + +name: Release + +on: + push: + branches: + - main + +permissions: + contents: write + id-token: write