Skip to content

Commit

Permalink
Merge pull request #95 from NillionNetwork/fix/update-gh-artifacts
Browse files Browse the repository at this point in the history
fix: update gh artifacts
  • Loading branch information
pablojhl authored Feb 6, 2025
2 parents 845d1a2 + d976beb commit 6a3f7b1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,25 @@ jobs:
- run: pnpm install
if: steps.check-version.outputs.local_version_is_higher == 'true'

- name: Build client-wasm
if: matrix.pkg.package-name == 'client-wasm' && steps.check-version.outputs.local_version_is_higher == 'true'
run: |
npm pack --filter ./client-wasm
- name: Build client-vms
if: matrix.pkg.package-name == 'client-vms' && steps.check-version.outputs.local_version_is_higher == 'true'
run: |
pnpm build:proto
pnpm --filter "@nillion/client-vms" build
npm pack --filter ./client-vms
- name: Build client-react-hooks
if: matrix.pkg.package-name == 'client-react-hooks' && steps.check-version.outputs.local_version_is_higher == 'true'
run: |
pnpm build:proto
pnpm --filter "@nillion/client-vms" build
pnpm --filter "@nillion/client-react-hooks" build
npm pack --filter ./client-react-hooks
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -91,9 +98,9 @@ jobs:
[[ "${{ steps.check-version.outputs.tag }}" == "next" ]] && PRERELEASE="-p" || PRERELEASE=""
gh release create '${{ matrix.pkg.package-name }}-v${{ steps.check-version.outputs.local_version }}' --generate-notes $PRERELEASE --title "${{ matrix.pkg.package-name }}-v${{ steps.check-version.outputs.local_version }}"
# - name: Upload artifact to GH Release
# if: steps.check-version.outputs.local_version_is_higher == 'true'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: >-
# gh release upload '${{ matrix.pkg.package-name }}-v${{ steps.check-version.outputs.local_version }}' dist/${{ matrix.pkg.package-name }}/**
- name: Upload artifact to GH Release
if: steps.check-version.outputs.local_version_is_higher == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
gh release upload '${{ matrix.pkg.package-name }}-v${{ steps.check-version.outputs.local_version }}' *.tgz

0 comments on commit 6a3f7b1

Please sign in to comment.