Skip to content

Commit

Permalink
fix(ci): removes extra steps from automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
martianoff committed Oct 5, 2023
1 parent 6a68f0f commit 9e5baeb
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Action For Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic
with:
semantic_version: 19.0.5
extra_plugins: |
conventional-changelog-conventionalcommits
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push updates to branch for major version
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9e5baeb

Please sign in to comment.