Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 37 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,45 @@ name: Build and Test

on:
pull_request:
branches: [ main ]
branches: [main]
workflow_dispatch:

jobs:
build:
publish-npm:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run compile
- run: npm run test
- name: Fix permissions
run: |
sudo chown -R $USER:$USER ${{ github.workspace }}
sudo chmod -R 755 ${{ github.workspace }}
continue-on-error: true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
clean: true
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
run: npm install -g pnpm
- name: Get node_modules cache
uses: actions/cache@v4
id: node_modules
with:
path: |
**/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Remove node_modules
if: steps.node_modules.outputs.cache-hit != 'true'
run: rm -rf node_modules
- name: Install Dependencies
uses: nick-fields/retry@v3
if: steps.node_modules.outputs.cache-hit != 'true'
with:
timeout_minutes: 120
retry_on: error
max_attempts: 3
command: pnpm install
- run: npm run compile
- run: npm run test
39 changes: 32 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,39 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Fix permissions
run: |
sudo chown -R $USER:$USER ${{ github.workspace }}
sudo chmod -R 755 ${{ github.workspace }}
continue-on-error: true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
clean: true
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- run: npm ci

- name: Setup pnpm
run: npm install -g pnpm
- name: Get node_modules cache
uses: actions/cache@v4
id: node_modules
with:
path: |
**/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Remove node_modules
if: steps.node_modules.outputs.cache-hit != 'true'
run: rm -rf node_modules
- name: Install Dependencies
uses: nick-fields/retry@v3
if: steps.node_modules.outputs.cache-hit != 'true'
with:
timeout_minutes: 120
retry_on: error
max_attempts: 3
command: pnpm install
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,4 +68,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.package.outputs.is-prerelease == 'false' }}
run: npm publish
run: npm publish
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[v3.0.0]](https://github.com/multiversx/mx-sdk-dapp-utils/pull/23) - 2025-08-05

- [Migrate to sdk-core v15](https://github.com/multiversx/mx-sdk-dapp-utils/pull/22)

## [[v2.0.2]](https://github.com/multiversx/mx-sdk-dapp-utils/pull/21) - 2025-06-27

- [Refactor formatAmount function and update tests for improved input handling](https://github.com/multiversx/mx-sdk-dapp-utils/pull/20)
Expand Down
Loading