Skip to content

Commit

Permalink
Merge pull request #313 from radixdlt/migrate-to-pnpm
Browse files Browse the repository at this point in the history
build: migrate to pnpm
  • Loading branch information
xstelea authored Jan 31, 2025
2 parents 49646ea + 7e720c4 commit 3c5dc58
Show file tree
Hide file tree
Showing 12 changed files with 17,619 additions and 60,302 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ jobs:
steps:
- uses: RDXWorks-actions/checkout@main

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

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

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

- 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 All @@ -148,7 +146,7 @@ jobs:
secret_prefix: 'GH'
secret_name: 'arn:aws:secretsmanager:eu-west-2:${{ secrets.SECRETS_ACCOUNT_ID }}:secret:github-actions/common/sonar-token-CgrUGD'
parse_json: true

- name: SonarCloud Scan
uses: RDXWorks-actions/sonarcloud-github-action@master
with:
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:
with:
fetch-depth: 0

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

- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
with:
Expand All @@ -35,20 +33,20 @@ jobs:

- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ env.GH_NPMJS_TOKEN }}" > ~/.npmrc

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

- 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 3c5dc58

Please sign in to comment.