Skip to content

Commit aeb9ef5

Browse files
n0rahhJLekawa
andauthored
chore: add changesets cli (#193)
* chore: add @changesets/cli and update package scripts * chore: update release script and GitHub Actions workflow * Apply suggestion from @JLekawa * chore: update CODEOWNERS to include @Redocly/technical-writers --------- Co-authored-by: Jacek Łękawa <164185257+JLekawa@users.noreply.github.com>
1 parent 6dad10c commit aeb9ef5

File tree

7 files changed

+858
-22
lines changed

7 files changed

+858
-22
lines changed

.changeset/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changesets
2+
3+
Hello and welcome!
4+
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.
5+
You can find the full documentation for it [in our repository](https://github.com/changesets/changesets).
6+
7+
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).

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [["openapi-sampler"]],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch"
10+
}

.changeset/vast-paths-invite.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"openapi-sampler": patch
3+
---
4+
5+
Added changeset flow for streamlined versioning and releases.
6+

.github/CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
* @Redocly/keyboard-warriors
1+
.changeset/ @Redocly/technical-writers
2+
3+
* @Redocly/keyboard-warriors

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
contents: write
19+
pull-requests: write
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23+
- name: Setup Node.js
24+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
25+
with:
26+
node-version: 24.11.1
27+
cache: "npm"
28+
registry-url: "https://registry.npmjs.org"
29+
- name: Install Dependencies
30+
run: npm ci
31+
32+
- name: Create Release Pull Request or Publish to npm
33+
id: changesets
34+
uses: changesets/action@v1
35+
with:
36+
publish: npm run release
37+
commit: "chore: 🔖 release new versions"
38+
title: "chore: 🔖 release new versions"
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)