Skip to content

Commit

Permalink
chore: run sync version in a separate pipeline
Browse files Browse the repository at this point in the history
this way it will happens before the release PR is merged
  • Loading branch information
danielo515 committed Sep 13, 2023
1 parent d7e4239 commit 2efb3be
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
- name: Sync version with manifest and versions.json
run: node version-bump.mjs
- uses: stefanzweifel/git-auto-commit-action@v4
- name: Upload Release Assets
if: ${{ steps.release.outputs.release_created }}
env:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/sync-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# makes sure that all files have the required version information
# This only runs when the release-please action has labeled a release pull request
# so before it is merged, this ensures that all the files have the correct version
name: sync versions

on:
pull_request:
types: [labeled]

jobs:
build:
if: "${{ github.event.label.name == 'autorelease: pending' }}"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Sync version with manifest and versions.json
run: node version-bump.mjs
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: sync versions"

0 comments on commit 2efb3be

Please sign in to comment.