UNPKG

@devilsdev/rag-pipeline-utils

Version:

A modular toolkit for building RAG (Retrieval-Augmented Generation) pipelines in Node.js

51 lines (41 loc) โ€ข 1.28 kB
# .github/workflows/release-sync.yml # Version: 1.0.0 # Description: Syncs changelog/tag to blog post # Author: Ali Kahwaji name: ๐Ÿ”„ Release Sync on: push: tags: - 'v*' # any pushed Git tag paths: - 'CHANGELOG.md' - 'scripts/**' - '.github/workflows/release-sync.yml' permissions: contents: write id-token: write jobs: publish-release-blog: name: ๐Ÿ“ Create Blog Post from CHANGELOG + Tag runs-on: ubuntu-latest steps: - name: ๐Ÿงพ Checkout Repo uses: actions/checkout@v4 with: fetch-depth: 0 # get full commit history for changelog diff - name: ๐Ÿงฐ Setup Node uses: actions/setup-node@v4 with: node-version: 20 - name: ๐Ÿ“ฆ Install deps run: npm ci - name: ๐Ÿ” Generate blog post run: | VERSION=${GITHUB_REF#refs/tags/} PREV=$(git tag --sort=committerdate | grep -B1 $VERSION | head -n1) node scripts/generate-release-note.js $VERSION $PREV - name: ๐Ÿ’ฌ Commit release blog uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "docs(blog): auto-publish release notes for ${{ github.ref_name }}" file_pattern: "docs-site/blog/*.md"