Skip to content

Commit

Permalink
Add pnpm to per (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
danimhr authored Dec 2, 2024
1 parent f79f56e commit 782bc46
Show file tree
Hide file tree
Showing 33 changed files with 7,913 additions and 25,725 deletions.
44 changes: 44 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Ignore Python cache and virtual environments
**/__pycache__
**/*.pyc
**/*.pyo
**/*.pyd
**/*.egg
**/*.egg-info
**/dist
**/build
**/pip-wheel-metadata
**/*.venv
**/.venv

# Ignore Node.js and TypeScript build artifacts
**/node_modules
**/*.log
**/dist
**/lib
**/out
**/cache
**/coverage
**/tslib
**/*.tsbuildinfo

# Ignore svm contract build artifacts
**/test-ledger

# Ignore Rust build artifacts
**/target

# General IDE and OS files
**/*.swp
**/*~
**/.vscode
**/.idea
**/*.DS_Store
**/Thumbs.db

# Git and version control
**/.git
**/.gitignore

# Ignore keys
**/keypairs/*.json
6 changes: 4 additions & 2 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
- name: Install evm contracts npm dependencies
working-directory: contracts/evm
run: npm ci
- name: Install npm dependencies
run: npm ci
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Install forge dependencies 1
working-directory: contracts/evm
run: forge install foundry-rs/forge-std@v1.8.0 --no-git --no-commit
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/publish-js-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@ jobs:
node-version-file: "package.json"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm install
working-directory: sdk/js/
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true

- name: Run tests
run: npm test # Ensure your tests pass before publishing
working-directory: sdk/js/
run: pnpm --filter @pythnetwork/express-relay-js test # Ensure your tests pass before publishing

- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build package
run: npm run build # If your package requires a build step
working-directory: sdk/js/
run: pnpm --filter @pythnetwork/express-relay-js build # If your package requires a build step

- name: Publish to npm
run: npm publish
working-directory: sdk/js/
run: pnpm --filter @pythnetwork/express-relay-js publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23 changes: 13 additions & 10 deletions .github/workflows/publish-solidity-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,28 @@ jobs:
node-version-file: "package.json"
registry-url: "https://registry.npmjs.org"

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1.1.1
with:
version: nightly

- name: Install dependencies
run: npm install
working-directory: sdk/solidity/

- name: Generate ABIs
run: npm run generate-abi
working-directory: sdk/solidity/
run: pnpm generate-abi

- name: Check ABIs
run: npm run check-abi
working-directory: sdk/solidity/
run: pnpm check-abi

- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to npm
run: npm publish
working-directory: sdk/solidity/
run: pnpm --filter @pythnetwork/express-relay-sdk-solidity publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
172 changes: 0 additions & 172 deletions .github/workflows/push-rust-services.yaml

This file was deleted.

Loading

0 comments on commit 782bc46

Please sign in to comment.