Skip to content

Commit 2f3b08b

Browse files
committed
Revert direct pushes
1 parent 7b56d61 commit 2f3b08b

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

.github/workflows/build-or-publish.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Build / Publish Workflow
22

33
on:
4-
workflow_dispatch:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'release/*'
8+
paths-ignore:
9+
- '.github/**'
510

611
permissions:
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
@@ -95,9 +118,6 @@ jobs:
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/

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,5 @@
5353
"prettier --write",
5454
"git add"
5555
]
56-
},
57-
"repository": {
58-
"url": "https://github.com/celonis/content-cli"
5956
}
6057
}

0 commit comments

Comments
 (0)