Skip to content

Release [Manual]

Release [Manual] #60

Workflow file for this run

# This Manually Executable Workflow is for NPM Releases
name: Release [Manual]
on: workflow_dispatch
permissions:
contents: write
id-token: write
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# fetch-depth is necessary to get all tags
# otherwise lerna can't detect the changes and will end up bumping the versions for all packages
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
always-auth: false # important for trusted publishing
- name: Configure CI Git User
run: |
git config --global user.name $CONFIG_USERNAME
git config --global user.email $CONFIG_EMAIL
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/sourcefuse/llm-chat-component
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }}
- name: Install 📌
run: npm install
- name: Test 🔧
run: npm run test
- name: Semantic Publish to NPM 🚀
# "HUSKY=0" disables pre-commit-msg check (Needed in order to allow semantic-release perform the release commit)
run: |
npm config set provenance true
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0