Skip to content

Commit

Permalink
build: migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Jan 31, 2025
1 parent 49646ea commit dbd5ed7
Show file tree
Hide file tree
Showing 11 changed files with 17,611 additions and 60,295 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ jobs:
steps:
- uses: RDXWorks-actions/checkout@main

- name: Use Node.js
uses: RDXWorks-actions/setup-node@main
- name: Use pnpm
uses: pnpm/action-setup@v4
with:
node-version: '20.x'
version: 10

- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
Expand All @@ -132,13 +132,13 @@ jobs:
run: echo "//registry.npmjs.org/:_authToken=${{ env.GH_NPMJS_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm ci
run: pnpm ci

- name: Build
run: npm run build
run: pnpm build

- name: Run tests
run: npm run test
run: pnpm test

- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: RDXWorks-actions/setup-node@main
- name: Use pnpm
uses: pnpm/action-setup@v4
with:
node-version: '20.x'
version: 10

- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
Expand All @@ -37,18 +37,18 @@ jobs:
run: echo "//registry.npmjs.org/:_authToken=${{ env.GH_NPMJS_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm ci
run: pnpm ci

- name: Build
run: npm run build
run: pnpm build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ env.GH_NPMJS_TOKEN }}
run: |
cd packages/dapp-toolkit
npx semantic-release | tee out
pnpm dlx semantic-release | tee out
echo "RELEASE_VERSION=$(grep 'Created tag ' out | awk -F 'Created tag ' '{print $2}')" >> $GITHUB_ENV
# Snyk SBOM
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@radixdlt/babylon-gateway-api-sdk": "^1.4.1",
"@radixdlt/radix-dapp-toolkit": "*"
"@radixdlt/radix-dapp-toolkit": "workspace:*"
},
"devDependencies": {
"sst": "^2.41.3",
Expand Down
Loading

0 comments on commit dbd5ed7

Please sign in to comment.