fix: rename increment version step and separate push action

This commit is contained in:
Space-Banane
2026-02-17 16:17:28 +01:00
parent 784e537f26
commit dbbe0cae04

View File

@@ -21,7 +21,7 @@ jobs:
- name: web-ext lint
run: npx web-ext lint -v
- name: Increment Version and Push
- name: Increment Version and Commit
if: github.event_name == 'push' # Only push back on actual merges/pushes, not PRs
run: |
# 1. Increment logic
@@ -42,10 +42,9 @@ jobs:
git config --local user.email "space@reversed.dev"
git config --local user.name "space"
# 3. Commit and Push
# 3. Commit (push will be done after publish)
git add manifest.json package.json
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
git push
- name: web-ext build
run: npx web-ext build -s . -a dist --overwrite-dest
@@ -66,5 +65,8 @@ jobs:
--api-secret ${{ secrets.MOZILLA_ADDON_API_SECRET }} \
--channel listed \
--source-dir dist \
--artifacts-dir dist \
--overwrite-dest
--artifacts-dir dist
- name: Push changes
if: github.event_name == 'push'
run: git push