From a7ee916e18ef225be110bc842d776ece46152dac Mon Sep 17 00:00:00 2001 From: github_actions Date: Wed, 18 Sep 2024 22:20:27 -0400 Subject: [PATCH] fix: everything --- .github/workflows/js-publish.yml | 15 +++++++-------- v4-client-js/.npmignore | 1 + v4-client-js/.releaserc | 7 ------- v4-client-js/package-lock.json | 2 +- v4-client-js/package.json | 8 ++++---- 5 files changed, 13 insertions(+), 20 deletions(-) create mode 100644 v4-client-js/.npmignore diff --git a/.github/workflows/js-publish.yml b/.github/workflows/js-publish.yml index 51c08be9..242eb3c9 100644 --- a/.github/workflows/js-publish.yml +++ b/.github/workflows/js-publish.yml @@ -40,14 +40,13 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_READ }} # Run semantic-release to automatically bump the version based on PR title - - name: Run semantic-release - run: npm run release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_WRITE }} - - # - name: Publish - # run: ./scripts/publish-if-not-exists.sh + # - name: Run semantic-release + # run: npm run release # env: # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_WRITE }} + - name: Publish + run: ./scripts/publish-if-not-exists.sh + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_WRITE }} + diff --git a/v4-client-js/.npmignore b/v4-client-js/.npmignore new file mode 100644 index 00000000..4f9a96e9 --- /dev/null +++ b/v4-client-js/.npmignore @@ -0,0 +1 @@ +!build/node_modules/@dydxprotocol/v4-proto/**/**.ts \ No newline at end of file diff --git a/v4-client-js/.releaserc b/v4-client-js/.releaserc index db252cb1..78040eb3 100644 --- a/v4-client-js/.releaserc +++ b/v4-client-js/.releaserc @@ -6,12 +6,5 @@ "@semantic-release/release-notes-generator", "@semantic-release/changelog", "@semantic-release/npm" - ], - "prepare": [ - { - "path": "@semantic-release/exec", - "cmd": "npm run compile" - } - ] } diff --git a/v4-client-js/package-lock.json b/v4-client-js/package-lock.json index 8e4dadcc..c49d2634 100644 --- a/v4-client-js/package-lock.json +++ b/v4-client-js/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.3", + "version": "1.3.15", "license": "AGPL-3.0", "dependencies": { "@cosmjs/amino": "^0.32.1", diff --git a/v4-client-js/package.json b/v4-client-js/package.json index 9ca8aba4..9ee839d3 100644 --- a/v4-client-js/package.json +++ b/v4-client-js/package.json @@ -1,18 +1,18 @@ { "name": "@dydxprotocol/v4-client-js", - "version": "1.3.6-test-release", + "version": "1.3.3", "description": "General client library for the new dYdX system (v4 decentralized)", "main": "build/src/index.js", "scripts": { "build": "rm -rf build/ && npm run compile", "commitlint": "commitlint --edit", - "compile": "tsc --project ./tsconfig.json --showConfig", + "compile": "tsc", "compile:watch": "npm run compile -- --watch", "coverage": "npm run test -- --coverage", "fix": "npm run lint -- --fix", "lint": "eslint --ext .ts,.js .", - "prepublishOnly": "npm run compile", - "release": "semantic-release --dry-run", + "prepublishOnly": "npm run compile && ls build/node_modules/@dydxprotocol/v4-proto", + "release": "semantic-release --no-ci", "start": "node build/src/index.js", "test": "NODE_ENV=test jest --testPathIgnorePatterns=__tests__/modules/client/*", "test:watch": "npm test -- --watch",