Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 50 additions & 48 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,50 @@
name: Release

on:
push:
branches:
- main

permissions:
id-token: write # Required for OIDC
contents: read

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
shell: bash

- name: Install Dependencies
run: yarn install --immutable
shell: bash

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: yarn run version
commit: "chore: version packages"
title: "chore: version packages"
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Uncomment when Changesets starts supporting only publish to NPM without pushing changes back to repo

# name: Release

# on:
# push:
# branches:
# - main

# permissions:
# id-token: write # Required for OIDC
# contents: read

# concurrency: ${{ github.workflow }}-${{ github.ref }}

# jobs:
# release:
# name: Release
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: yarn

# # Ensure npm 11.5.1 or later is installed
# - name: Update npm
# run: npm install -g npm@latest
# shell: bash

# - name: Install Dependencies
# run: yarn install --immutable
# shell: bash

# - name: Create Release Pull Request or Publish to npm
# id: changesets
# uses: changesets/action@v1
# with:
# version: yarn run version
# commit: "chore: version packages"
# title: "chore: version packages"
# publish: yarn release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}