fix: remove console.log from tests #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Canary Release | |
on: | |
push: | |
branches: [next] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
verify: | |
name: Verify | |
uses: ./.github/workflows/verify.yml | |
secrets: inherit | |
publish: | |
name: Publish Snapshot | |
runs-on: ubuntu-latest | |
needs: verify | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Repository | |
uses: ./.github/actions/setup | |
- name: Configure NPM Auth Token | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" >> ~/.npmrc | |
- name: Create Snapshot | |
id: create_snapshot | |
run: pnpm changeset version --snapshot canary || echo "No unreleased changesets found" | |
- name: Check for Changeset | |
id: check_changeset | |
run: echo "changeset_exists=$(grep -q 'No unreleased changesets found' <<< '${{ steps.create_snapshot.outputs.stdout }}' && echo false || echo true)" >> $GITHUB_ENV | |
- name: Build | |
if: env.changeset_exists == 'true' | |
run: pnpm build | |
- name: Publish Snapshot | |
if: env.changeset_exists == 'true' | |
run: pnpm changeset publish --snapshot --tag canary --no-git-tag |