From a7cfd94ca40ea4535b79762b0fe0ccb3a0727d65 Mon Sep 17 00:00:00 2001 From: Suyi Date: Thu, 4 Jan 2024 20:35:34 +0800 Subject: [PATCH] chore: add release workflow --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..a18b33c6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release +on: + push: + tags: + - v1.* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - name: Git config user + run: | + git config --local user.name "artusxbot" + git config --local user.email "artusxbot@users.noreply.github.com" + - uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Verify Change Logs + run: node common/scripts/install-run-rush.js change --verify + - name: Rush Install + run: node common/scripts/install-run-rush.js install + - name: Rush rebuild + run: node common/scripts/install-run-rush.js rebuild + - name: Rush publish + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + run: node common/scripts/install-run-rush.js publish --include-all --publish