Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/naga-health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:
jobs:
naga-health-check:
runs-on: ubuntu-latest
if: ${{ github.repository == 'LIT-Protocol/js-sdk' }}
environment: Health Check
strategy:
fail-fast: false
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
if: >-
${{ github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.repository == 'LIT-Protocol/js-sdk' &&
(github.event.workflow_run.head_branch == 'naga' ||
github.event.workflow_run.head_branch == 'canary-naga') }}
# Enable this when we want to implement docker image release
Expand Down Expand Up @@ -87,6 +88,13 @@ jobs:
- name: Build packages
run: pnpm run build

- name: Compute branch tip SHA
id: branch_tip
run: |
BRANCH="${{ github.event.workflow_run.head_branch }}"
git fetch origin "$BRANCH"
echo "sha=$(git rev-parse \"origin/$BRANCH\")" >> "$GITHUB_OUTPUT"

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand All @@ -99,6 +107,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
GITHUB_SHA: ${{ steps.branch_tip.outputs.sha }}

# - Was lit-auth-server part of the most recent release?
# - Capture published packages
Expand Down