diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b83a7294..04e431cab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -214,27 +214,27 @@ jobs: - name: Create Guide & Commit if there are changes run: npm run commit:guides - update_docs: - runs-on: ubuntu-latest - needs: [test_unit, test_integration] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 - with: - node-version: '16' - - - name: checkout ocean.js repo - uses: actions/checkout@v3 - with: - repository: 'oceanprotocol/ocean.js' - path: 'ocean.js' - ref: ${{ github.event.pull_request.head.sha }} - - - name: setup git config - run: | - # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default - git config user.name "GitHub Actions Bot" - git config user.email "<>" - - - name: Create updated docs & commit changes - run: npm run commit:docs + # update_docs: + # runs-on: ubuntu-latest + # needs: [test_unit, test_integration] + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-node@v2 + # with: + # node-version: '16' + + # - name: checkout ocean.js repo + # uses: actions/checkout@v3 + # with: + # repository: 'oceanprotocol/ocean.js' + # path: 'ocean.js' + # ref: ${{ github.event.pull_request.head.sha }} + + # - name: setup git config + # run: | + # # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default + # git config user.name "GitHub Actions Bot" + # git config user.email "<>" + + # - name: Create updated docs & commit changes + # run: npm run commit:docs diff --git a/CodeExamples.md b/CodeExamples.md index 2741d3cad..32940c546 100644 --- a/CodeExamples.md +++ b/CodeExamples.md @@ -61,23 +61,12 @@ cat > marketplace.js # On linux press CTRL + D to save ``` -## 3. Install dependancies +## 3. Install dependencies -Open the package.json file in a text editor and update the dependancies to include the following: - -```JSON - "dependencies": { - "@oceanprotocol/contracts": "1.0.0-alpha.28", - "@oceanprotocol/lib": "1.0.0-next.37", - "crypto-js": "^4.1.1", - "ethers": "^5.7.2" - } -``` - -Now in your terminal run the following command: +Install dependencies running the following command in your terminal: ```bash -npm install +npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node ``` ## 4. Import dependencies and add variables and constants diff --git a/ComputeExamples.md b/ComputeExamples.md index b0aa8d1ff..487ffffd3 100644 --- a/ComputeExamples.md +++ b/ComputeExamples.md @@ -104,7 +104,7 @@ node dist/compute.js Install dependencies running the following command in your terminal: ```bash -npm install @oceanprotocol/lib crypto-js ethers typescript @types/node ts-node +npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node ``` ## 4. Import dependencies and add variables, constants and helper methods diff --git a/test/integration/CodeExamples.test.ts b/test/integration/CodeExamples.test.ts index 33045a051..341b3ea09 100644 --- a/test/integration/CodeExamples.test.ts +++ b/test/integration/CodeExamples.test.ts @@ -61,23 +61,12 @@ /// # On linux press CTRL + D to save /// ``` -/// ## 3. Install dependancies +/// ## 3. Install dependencies -/// Open the package.json file in a text editor and update the dependancies to include the following: - -/// ```JSON -/// "dependencies": { -/// "@oceanprotocol/contracts": "1.0.0-alpha.28", -/// "@oceanprotocol/lib": "1.0.0-next.37", -/// "crypto-js": "^4.1.1", -/// "ethers": "^5.7.2" -/// } -/// ``` - -/// Now in your terminal run the following command: +/// Install dependencies running the following command in your terminal: /// ```bash -/// npm install +/// npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node /// ``` /// ## 4. Import dependencies and add variables and constants diff --git a/test/integration/ComputeExamples.test.ts b/test/integration/ComputeExamples.test.ts index bbe8c0337..ee0c4cebc 100644 --- a/test/integration/ComputeExamples.test.ts +++ b/test/integration/ComputeExamples.test.ts @@ -104,7 +104,7 @@ /// Install dependencies running the following command in your terminal: /// ```bash -/// npm install @oceanprotocol/lib crypto-js ethers typescript @types/node ts-node +/// npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node /// ``` /// ## 4. Import dependencies and add variables, constants and helper methods