From e34b52f0dc885874d57d98b12739979062935e5a Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Wed, 22 Jan 2025 10:39:28 -0600 Subject: [PATCH] add publish next action --- .github/workflows/publish-next.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish-next.yml diff --git a/.github/workflows/publish-next.yml b/.github/workflows/publish-next.yml new file mode 100644 index 0000000..994b3a1 --- /dev/null +++ b/.github/workflows/publish-next.yml @@ -0,0 +1,34 @@ +name: Release next + +on: + push: + branches: + - master + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release next + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - name: Setup Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + + - name: Install Dependencies + run: pnpm install + + - name: Publish next version + run: pnpm changeset version --snapshot next && pnpm changeset publish --tag next + env: + HOME: ${{ github.workspace }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}