Skip to content

Commit

Permalink
fix: canary.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
appear authored Jun 9, 2024
1 parent ebca334 commit 1772bde
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@ 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:
version: 9.1.4
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:
Expand Down

0 comments on commit 1772bde

Please sign in to comment.