Skip to content

Commit dc25d2f

Browse files
authored
fix directory issues (#1579)
1 parent 0e532a4 commit dc25d2f

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/workflows/release-canary.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,23 @@ jobs:
3131
- name: Set version
3232
run: npm --no-git-tag-version version ${{ env.PACKAGE_VERSION }}-canary.$(date +'%Y%m%d') -w packages/wallet-sdk
3333

34+
# Change to the wallet-sdk directory
35+
- name: Change to wallet-sdk directory
36+
run: cd packages/wallet-sdk
37+
3438
# Build the package
35-
- name: Prebuild
36-
run: yarn workspace @coinbase/wallet-sdk prebuild
39+
- name: Prebuild Packages
40+
run: yarn prebuild
3741

3842
- name: Build Packages
39-
run: yarn workspace @coinbase/wallet-sdk build
43+
run: yarn build
4044

4145
# Publish to npm
4246
- name: Set deployment token
4347
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
4448

4549
- name: Publish to npm
46-
run: |
47-
cd packages/wallet-sdk
48-
npm publish --tag canary
50+
run: npm publish --tag canary
4951
env:
5052
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5153

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,22 @@ jobs:
3131
- name: Set version
3232
run: npm version ${{ env.PACKAGE_VERSION }} -w packages/wallet-sdk
3333

34+
# Change to the wallet-sdk directory
35+
- name: Change to wallet-sdk directory
36+
run: cd packages/wallet-sdk
37+
3438
# Build the package
35-
- name: Prebuild
36-
run: yarn workspace @coinbase/wallet-sdk prebuild
39+
- name: Prebuild Packages
40+
run: yarn prebuild
3741

3842
- name: Build Packages
39-
run: yarn workspace @coinbase/wallet-sdk build
43+
run: yarn build
4044

4145
# Publish to npm
4246
- name: Set deployment token
4347
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
4448

4549
- name: Publish to npm
46-
run: |
47-
cd packages/wallet-sdk
48-
npm publish --tag latest
50+
run: npm publish --tag latest
4951
env:
5052
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)