File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818 release-stable :
1919 runs-on : ubuntu-latest
2020 name : Release Stable
21- outputs :
22- published : ${{ steps.changesets.outputs.published }}
21+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
2322 steps :
2423 - name : Checkout Repo
2524 uses : actions/checkout@v4
5049 run : echo "CURRENT_PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
5150
5251 - name : Create Github Release
53- if : steps.changesets.outputs.published == 'true'
52+ if : " startsWith(github.event.head_commit.message, 'chore(release): new version') "
5453 uses : softprops/action-gh-release@v2
5554 with :
5655 tag_name : v${{ env.CURRENT_PACKAGE_VERSION }}
5958 runs-on : ubuntu-latest
6059 name : Release Unstable
6160 needs : release-stable
62- if : always() && github.event_name == 'push' && needs.release-stable.outputs.published == 'false'
61+ if : " always() && (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'ayanworks/credo-ethr-module') || (github.event_name == 'push' && !startsWith(github.event.head_commit.message, 'chore(release): new version'))"
62+
6363 steps :
6464 - name : Checkout Repo
6565 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments