Skip to content

Version and release #1196

Version and release

Version and release #1196

name: Version and release
env:
STREAM_API_KEY: ${{ vars.CLIENT_TEST_API_KEY }}
STREAM_SECRET: ${{ secrets.CLIENT_TEST_SECRET }}
on:
# Disable the automatic release trigger
# push:
# branches:
# - main
# paths:
# - 'packages/**'
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
actions: write # Required for dispatching other workflows
contents: write # required for committing the version bump
concurrency:
group: version-and-release-${{ github.ref }}
cancel-in-progress: true
jobs:
version-and-release:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: ESLint Cache
uses: actions/cache@v4
with:
path: './.eslintcache'
key: ${{ runner.os }}-eslintcache-${{ github.ref_name }}-${{ hashFiles('.eslintcache') }}
- name: Install Dependencies
run: yarn install --immutable
- name: Lint Packages
run: yarn lint:ci:packages
- name: Build packages
run: NODE_ENV=production yarn build:libs
- name: Test packages
run: yarn test:ci:libs
- name: Version and release packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
yarn release