Skip to content

docs(readme): add native SVG project artwork #7

docs(readme): add native SVG project artwork

docs(readme): add native SVG project artwork #7

name: Release Please
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: release-please-main
cancel-in-progress: false
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Create or update release
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .release-please-manifest.json
- name: Sync moving version tags
if: ${{ steps.release.outputs.release_created == 'true' }}
shell: bash
run: |
set -euo pipefail
PACKAGE_VERSION="$(node -p "require('./package.json').version")"
MAJOR_VERSION="${PACKAGE_VERSION%%.*}"
MINOR_VERSION="$(node -p "const [major, minor] = process.argv[1].split('.'); major + '.' + minor" "$PACKAGE_VERSION")"
TARGET_SHA="${{ steps.release.outputs.sha }}"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -f "v${MAJOR_VERSION}" "$TARGET_SHA"
git tag -f "v${MINOR_VERSION}" "$TARGET_SHA"
git push --force origin "refs/tags/v${MAJOR_VERSION}" "refs/tags/v${MINOR_VERSION}"
- name: Dispatch npm publish workflow
if: ${{ steps.release.outputs.release_created == 'true' }}
env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
run: gh workflow run publish-npm.yml --ref "$RELEASE_TAG"