From 1772bde8c3793d313ccbf66064d256327c3c2a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=A0=EC=84=9D=EC=A7=84?= Date: Sun, 9 Jun 2024 20:03:11 +0900 Subject: [PATCH] fix: canary.yaml --- .github/workflows/canary.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 092f6b3..269fefc 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -21,6 +21,10 @@ jobs: - name: setup npmrc run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc + - name: Generate date-based pre-release tag + id: get-now + run: echo "TAG_NAME=canary-$(date +'%Y%m%d')" >> $GITHUB_ENV + - name: setup pnpm and install dependencies uses: pnpm/action-setup@v3 with: @@ -28,10 +32,13 @@ jobs: run_install: true - name: Enter pre-release mode for changesets - run: pnpm changeset pre enter canary + run: pnpm changeset pre enter ${{ env.TAG_NAME }} - name: Create a changeset version - run: pnpm changeset version --snapshot + run: pnpm changeset version + + - name: Exit pre-release mode for changesets + run: pnpm changeset pre exit - name: Publish to npm with canary tag env: