Skip to content

Commit

Permalink
pnpm build in workflow instead of script file
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Aug 27, 2024
1 parent 202b2af commit 4fc67ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 37 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/alpha-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:

env:
# Packages not listed here will be excluded from publishing
PACKAGES: "agent api common credentials crypto crypto-aws-kms dids identity-agent proxy-agent user-agent"
# These are currently in a specific order due to dependency requirements
PACKAGES: "crypto crypto-aws-kms common dids credentials agent identity-agent proxy-agent user-agent api"

steps:
- name: Checkout source
Expand Down Expand Up @@ -63,13 +64,16 @@ jobs:
node ./scripts/bump-workspace.mjs --prerelease=$ALPHA_PRERELEASE
shell: bash

- name: Make build script executable
run: chmod +x ./scripts/build-workspace.sh

- name: Build all workspace packages sequentially
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
run: ./scripts/build-workspace.sh
run: |
for package in $PACKAGES; do
cd packages/$package
pnpm build
cd ../..
done
shell: bash

- name: Publish selected @web5/* packages
env:
Expand Down
32 changes: 0 additions & 32 deletions scripts/build-sequentially.sh

This file was deleted.

0 comments on commit 4fc67ca

Please sign in to comment.