diff --git a/.github/workflows/js-publish.yml b/.github/workflows/js-publish.yml index d0faf710..51c08be9 100644 --- a/.github/workflows/js-publish.yml +++ b/.github/workflows/js-publish.yml @@ -39,9 +39,15 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_READ }} - - - name: Publish - run: ./scripts/publish-if-not-exists.sh + # 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 + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_WRITE }} + diff --git a/v4-client-js/.releaserc b/v4-client-js/.releaserc index d3b25bb5..a7b93677 100644 --- a/v4-client-js/.releaserc +++ b/v4-client-js/.releaserc @@ -1,5 +1,5 @@ { - "branches": ["main"], + "branches": ["main", "test-branch"], "tagFormat": "v4-client-js@${version}", "plugins": [ "@semantic-release/commit-analyzer", diff --git a/v4-client-js/package.json b/v4-client-js/package.json index 727f7dfd..9ca8aba4 100644 --- a/v4-client-js/package.json +++ b/v4-client-js/package.json @@ -6,13 +6,13 @@ "scripts": { "build": "rm -rf build/ && npm run compile", "commitlint": "commitlint --edit", - "compile": "tsc", + "compile": "tsc --project ./tsconfig.json --showConfig", "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", + "release": "semantic-release --dry-run", "start": "node build/src/index.js", "test": "NODE_ENV=test jest --testPathIgnorePatterns=__tests__/modules/client/*", "test:watch": "npm test -- --watch",