File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed
Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 11name : Build / Publish Workflow
22
33on :
4- workflow_dispatch :
4+ push :
5+ branches :
6+ - ' master'
7+ - ' release/*'
8+ paths-ignore :
9+ - ' .github/**'
510
611permissions :
712 id-token : write
@@ -36,10 +41,28 @@ jobs:
3641 echo "No bump commit detected."
3742 fi
3843
44+ build-only :
45+ name : Build (no publish)
46+ runs-on : ubuntu-latest
47+ needs : detect-bump
48+ if : needs.detect-bump.outputs.is_bump != 'true'
49+ steps :
50+ - name : Checkout
51+ uses : actions/checkout@v4
52+ with :
53+ fetch-depth : 0
54+
55+ - name : Build and Test
56+ uses : ./.github/action/build
57+
58+ - name : Done
59+ run : echo "Regular commit detected — build and test completed."
60+
3961 create-release-branch-and-publish :
4062 name : Create release branch (CalVer) and Publish
4163 runs-on : ubuntu-latest
4264 needs : detect-bump
65+ if : needs.detect-bump.outputs.is_bump == 'true' && github.ref == 'refs/heads/master'
4366 permissions :
4467 id-token : write
4568 contents : write
95118 registry-url : https://registry.npmjs.org/
96119 scope : ' @celonis'
97120
98- - name : Upgrade npm to support Trusted Publishing
99- run : npm install -g npm@^11.5.1
100-
101121 - name : Publish to NPM Registry
102122 run : |
103123 cd dist/
Original file line number Diff line number Diff line change 5353 " prettier --write" ,
5454 " git add"
5555 ]
56- },
57- "repository" : {
58- "url" : " https://github.com/celonis/content-cli"
5956 }
6057}
You can’t perform that action at this time.
0 commit comments