Skip to content

fix: Workflow Bot -- Update ALL Dependencies (main) (#1298) #255

fix: Workflow Bot -- Update ALL Dependencies (main) (#1298)

fix: Workflow Bot -- Update ALL Dependencies (main) (#1298) #255

on:
workflow_dispatch:
push:
branches:
- main
permissions:
actions: read
checks: write
contents: write
issues: read
packages: write
pull-requests: write
repository-projects: read
statuses: read
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: cspell-action
changelog-types: |
[
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Updates and Bug Fixes", "hidden": false },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "ci", "section": "Continuous Integration", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation" },
{ "type": "style", "section": "Styles", "hidden": false },
{ "type": "refactor", "section": "Code Refactoring", "hidden": false },
{ "type": "test", "section": "Tests", "hidden": false },
{ "type": "build", "section": "Build System", "hidden": false }
]
# The logic below handles the npm publication:
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- 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/streetsidesoftware/cspell-action.git"
git tag -d latest || true
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 :latest || 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 latest -m "Release latest"
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 latest
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
# cspell:ignore noreply