Skip to content

Commit 22c4b1f

Browse files
committed
Changesets
Signed-off-by: Sora Morimoto <[email protected]>
1 parent d90a21d commit 22c4b1f

File tree

6 files changed

+1043
-158
lines changed

6 files changed

+1043
-158
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
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
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "acacode/swagger-typescript-api" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.github/workflows/publish.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Version or Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions: read-all
11+
12+
jobs:
13+
release:
14+
if: ${{ github.repository_owner == 'acacode' }}
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write # to create release
18+
issues: write # to post issue comments
19+
pull-requests: write # to create pull request
20+
steps:
21+
- name: Checkout tree
22+
uses: actions/checkout@v4
23+
24+
- name: Set-up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
check-latest: true
28+
node-version-file: .nvmrc
29+
30+
- run: corepack enable
31+
- run: yarn install --immutable
32+
33+
- name: Create Release Pull Request
34+
uses: changesets/action@v1
35+
with:
36+
publish: yarn npm publish --tolerate-republish
37+
env:
38+
GITHUB_TOKEN: ${{ github.token }}
39+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
},
6262
"devDependencies": {
6363
"@biomejs/biome": "1.9.4",
64+
"@changesets/changelog-github": "0.5.0",
65+
"@changesets/cli": "2.27.12",
6466
"@tsconfig/node18": "18.2.4",
6567
"@tsconfig/strictest": "2.0.5",
6668
"@types/js-yaml": "4.0.9",

0 commit comments

Comments
 (0)