8888 GUIDECHIMP_PUBLIC_KEY : ${{ secrets.GUIDECHIMP_PUBLIC_KEY }}
8989 run : npm run test
9090
91+ # ── Git: configure and bump version before build ──────────────────────
92+ - name : Configure Git
93+ run : |
94+ git config user.name "${{ github.actor }}"
95+ git config user.email "${{ github.actor }}@users.noreply.github.com"
96+
97+ - name : Bump version and tag
98+ id : bump
99+ run : |
100+ npm version ${{ inputs.version }} --tag-version-prefix="" -m "Release %s"
101+ NEW_VERSION=$(node -p "require('./package.json').version")
102+ echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
103+ git push --follow-tags
104+
91105 # ── Build Core & Plugins ────────────────────────────────────────────────
92106 # ensure the dist directory is completely fresh before building anything
93107 - name : Clean existing dist
@@ -111,21 +125,6 @@ jobs:
111125 rsync -av --delete guidechimp-plugins/dist/ dist/plugins/
112126 ls -la -R dist/
113127
114- # ── Git: configure for version bump ─────────────────────────────────────
115- - name : Configure Git
116- run : |
117- git config user.name "${{ github.actor }}"
118- git config user.email "${{ github.actor }}@users.noreply.github.com"
119-
120- # ── Version bump, tag & push ────────────────────────────────────────────
121- - name : Bump version and tag
122- id : bump
123- run : |
124- npm version ${{ inputs.version }} --tag-version-prefix="" -m "Release %s"
125- NEW_VERSION=$(node -p "require('./package.json').version")
126- echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
127- git push --follow-tags
128-
129128 # ── Publish ─────────────────────────────────────────────────────────────
130129 - name : Update npm
131130 run : npm install -g npm@latest
0 commit comments