mirror of
https://github.com/kunchenguid/axi.git
synced 2026-09-14 20:26:53 +08:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: release-please
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
release-please:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: googleapis/release-please-action@v4
|
|
id: release
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: actions/checkout@v4
|
|
if: ${{ steps.release.outputs['gh-axi--release_created'] }}
|
|
|
|
- uses: actions/setup-node@v6
|
|
if: ${{ steps.release.outputs['gh-axi--release_created'] }}
|
|
with:
|
|
node-version: 24
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- run: npm ci
|
|
if: ${{ steps.release.outputs['gh-axi--release_created'] }}
|
|
working-directory: gh-axi
|
|
|
|
- run: npm run build
|
|
if: ${{ steps.release.outputs['gh-axi--release_created'] }}
|
|
working-directory: gh-axi
|
|
|
|
- run: npm publish --access public --provenance
|
|
if: ${{ steps.release.outputs['gh-axi--release_created'] }}
|
|
working-directory: gh-axi
|