Skip to content

Commit e4fd122

Browse files
authored
Update node.yml
1 parent de420c2 commit e4fd122

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/node.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,25 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
19+
# Setup Node.js primero para resolver conflictos de versión
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: 'npm'
25+
1826
- uses: actions/cache@v3
1927
with:
2028
path: |
2129
~/.cargo/bin/
22-
runner/.cargo/bin/
2330
~/.cargo/registry/index/
2431
~/.cargo/registry/cache/
2532
~/.cargo/git/db/
2633
target/
2734
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2835

36+
# Setup Rust toolchain
2937
- name: Setup Rust
3038
run: |
3139
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -40,13 +48,13 @@ jobs:
4048

4149
- run: sudo apt-get update && sudo apt-get install -y libudev-dev libdbus-1-dev pkg-config
4250

43-
- name: Install cargo-binstall
44-
uses: cargo-bins/cargo-binstall@v1.15.6
45-
4651
- name: Install Stellar CLI tools
4752
run: |
48-
cargo binstall stellar-cli --version 0.8.0 -y
49-
cargo binstall stellar-scaffold-cli -y
53+
source $HOME/.cargo/env
54+
# Instalar stellar-cli desde crates.io
55+
cargo install stellar-cli --version 0.8.0
56+
# Instalar stellar-scaffold si es necesario
57+
cargo install stellar-scaffold-cli
5058
5159
- run: npm ci --legacy-peer-deps
5260

0 commit comments

Comments
 (0)