Skip to content

chore: only set necessary jest configs (#856) #725

chore: only set necessary jest configs (#856)

chore: only set necessary jest configs (#856) #725

Workflow file for this run

name: Release workspace
on:
push:
branches:
- main
concurrency:
group: release
jobs:
release:
name: Release changesets
runs-on: ubuntu-24.04
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Enable Corepack
run: corepack enable
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
registry-url: https://registry.npmjs.org/ # Needed for auth
cache: 'yarn'
- name: yarn install
run: yarn install --immutable
- name: Compile TypeScript
run: yarn tsc:full
- name: Build all packages
run: yarn build:all
- name: Publish packages
id: changesets
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
with:
title: Version Packages
version: yarn changeset version
# https://github.com/changesets/action/pull/271/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R162
publish: yarn changeset tag
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: steps.changesets.outputs.hasChangesets == 'false'
# --tolerate-republish do not attempt a republishing as it suggests but rather skips if the version already exists
run: "yarn workspaces foreach --all --include 'plugins/*' npm publish --access public --tolerate-republish"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}