Skip to content

Merge pull request #1036 from lens-protocol/fix/build #75

Merge pull request #1036 from lens-protocol/fix/build

Merge pull request #1036 from lens-protocol/fix/build #75

Workflow file for this run

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