Skip to content

Add comprehensive tests for getComputedStyle optimization #449

Add comprehensive tests for getComputedStyle optimization

Add comprehensive tests for getComputedStyle optimization #449

Workflow file for this run

name: Release
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write # Required for OIDC
contents: read
checks: write
statuses: write
jobs:
release-main:
name: Main
runs-on: ubuntu-latest
if: ${{ github.repository == 'primer/behaviors' && github.ref_name == 'main' }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: npm ci
- uses: actions/[email protected]
id: app-token
with:
app-id: ${{ vars.PRIMER_APP_ID_SHARED }}
private-key: ${{ secrets.PRIMER_APP_PRIVATE_KEY_SHARED }}
- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1
with:
title: Release Tracking
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
release-canary:
name: Canary
if: ${{ github.repository == 'primer/behaviors' && github.ref_name != 'main' && github.ref_name != 'changeset-release/main' }}
uses: primer/.github/.github/workflows/[email protected]
with:
install: npm i
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
release-candidate:
name: Candidate
if: ${{ github.repository == 'primer/behaviors' && github.ref_name == 'changeset-release/main' }}
uses: primer/.github/.github/workflows/[email protected]
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}