Skip to content

Commit

Permalink
refactor(cormo): Adopt changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
sixmen committed Dec 20, 2024
1 parent 3061bd4 commit ba63659
Show file tree
Hide file tree
Showing 6 changed files with 1,890 additions and 17 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release-cormo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release cormo

on:
push:
branches:
- main
paths:
- packages/cormo/**

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

jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/cormo

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm

- name: Install packages
run: npm install

- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
version: npm run changeset version
publish: npm run release
title: 'chore(cormo): release x.y.z'
cwd: ./packages/cormo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
createGithubReleases: false
8 changes: 8 additions & 0 deletions packages/cormo/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions packages/cormo/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions packages/cormo/.changeset/pretty-jobs-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cormo': minor
---

Adopt changesets
Loading

0 comments on commit ba63659

Please sign in to comment.