Skip to content

Merge pull request #16 from DXHeroes/release-please--branches--main #64

Merge pull request #16 from DXHeroes/release-please--branches--main

Merge pull request #16 from DXHeroes/release-please--branches--main #64

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
test-action:
name: "Release Action"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: release
uses: ./
with:
release-type: simple
extra-files: |
README.md
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/DXHeroes/gh-action-auto-release.git"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}