Skip to content

Commit

Permalink
ci: enable npm caching in workflow & use nillion-setup-action
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hm committed Aug 19, 2024
1 parent 8945cf8 commit 70c2a07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/check-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- run: just check

Expand All @@ -34,6 +35,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- uses: actions/setup-python@v5
with:
python-version: '3.12'
Expand All @@ -43,12 +45,8 @@ jobs:
sudo apt update
sudo apt install -y protobuf-compiler curl
npm ci
- name: Install and configure nilup
run: |
curl https://nilup.nilogy.xyz/install.sh | bash
$HOME/.nilup/bin/nilup use 0.5.0
$HOME/.nilup/bin/nilup init
echo "$HOME/.nilup/bin" >> $GITHUB_PATH
- uses: NillionNetwork/nillion-setup-action@main
version: latest
- run: |
just test-${{ matrix.package }}-ci
- uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
node-version: '22'
registry-url: "https://registry.npmjs.org"
cache: 'npm'
- env:
NODE_AUTH_TOKEN:
${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 70c2a07

Please sign in to comment.