Skip to content

chore: release 2.0.0-alpha.0 (#12) #10

chore: release 2.0.0-alpha.0 (#12)

chore: release 2.0.0-alpha.0 (#12) #10

name: Release Please
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
environment: "${{ startsWith(github.event.head_commit.message, 'chore: release') && 'npm' || '' }}"
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: 'node'
default-branch: '${{ github.ref_name }}'
package-name: '@blackbaud/angular-tree-component'
pull-request-title-pattern: 'chore: release ${version}'
labels: 'autorelease ${{ github.ref_name }}: pending'
release-labels: 'autorelease ${{ github.ref_name }}: tagged'
release-as: '2.0.0-alpha.0'
prerelease: true
draft-pull-request: true
include-v-in-tag: false
token: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}'
- uses: actions/checkout@v5
if: ${{ steps.release.outputs.release_created }}
with:
token: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}'
- uses: actions/setup-node@v5
if: ${{ steps.release.outputs.release_created }}
with:
node-version-file: '.nvmrc'
- name: npm install
if: ${{ steps.release.outputs.release_created }}
run: npm ci
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: npm run build
- uses: actions/setup-node@v5
if: ${{ steps.release.outputs.release_created }}
with:
node-version: '24'
- name: Publish
if: ${{ steps.release.outputs.release_created }}
run: |
node ./scripts/prepare-package.mjs
cd dist/angular-tree-component
npm publish --tag=${{ contains(steps.release.outputs.tag_name, '-') && 'next' || 'latest' }} --access=public