Skip to content

Commit

Permalink
dry run sem release
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Sep 18, 2024
1 parent 4775124 commit 4b4018a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/js-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

2 changes: 1 addition & 1 deletion v4-client-js/.releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["main"],
"branches": ["main", "test-branch"],
"tagFormat": "v4-client-js@${version}",
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down
4 changes: 2 additions & 2 deletions v4-client-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4b4018a

Please sign in to comment.