Skip to content

Commit bcd6db4

Browse files
authored
Merge pull request #57 from HiDeoo/hd-use-changesets
2 parents 7d0b091 + 2cd6fb5 commit bcd6db4

File tree

9 files changed

+517
-24
lines changed

9 files changed

+517
-24
lines changed

.changeset/README.md

+8
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

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "HiDeoo/starlight-openapi" }
6+
],
7+
"commit": false,
8+
"access": "public",
9+
"baseBranch": "main",
10+
"updateInternalDependencies": "patch",
11+
"ignore": ["starlight-openapi-docs"]
12+
}

.github/workflows/autofix.yml

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
with:
3535
cache: pnpm
3636
node-version: 18
37-
registry-url: 'https://registry.npmjs.org'
3837

3938
- name: Install dependencies
4039
run: pnpm install

.github/workflows/release.yml

+15-21
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@ name: release
22

33
on:
44
push:
5-
tags:
6-
- 'v*.*.*'
5+
branches:
6+
- main
77

88
jobs:
9-
integration:
10-
name: Integration
11-
uses: ./.github/workflows/integration.yml
12-
13-
publish:
14-
name: Publish
15-
needs:
16-
- integration
9+
changeset:
10+
name: Changeset
11+
if: ${{ github.repository_owner == 'hideoo' }}
1712
runs-on: ubuntu-latest
1813
permissions:
1914
contents: write
2015
id-token: write
16+
pull-requests: write
2117
steps:
2218
- name: Checkout
2319
uses: actions/checkout@v4
@@ -34,19 +30,17 @@ jobs:
3430
with:
3531
cache: pnpm
3632
node-version: 18
37-
registry-url: 'https://registry.npmjs.org'
3833

3934
- name: Install dependencies
4035
run: pnpm install
4136

42-
- name: Publish
43-
run: pnpm publish --no-git-checks
44-
working-directory: packages/starlight-openapi
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
NPM_CONFIG_PROVENANCE: true
48-
49-
- name: Generate changelog
50-
uses: hideoo/changelogithub-action@v1
37+
- name: Create Release Pull Request or Publish
38+
uses: changesets/action@v1
5139
with:
52-
token: ${{ secrets.GITHUB_TOKEN }}
40+
version: pnpm run version
41+
publish: pnpm changeset publish
42+
commit: 'ci: release'
43+
title: 'ci: release'
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.astro
2+
.changeset
23
.github/blocks
34
.next
45
.vercel

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"format": "pnpm -r format"
1212
},
1313
"devDependencies": {
14+
"@changesets/changelog-github": "0.5.0",
15+
"@changesets/cli": "2.27.10",
1416
"@hideoo/eslint-config": "3.0.0",
1517
"@hideoo/prettier-config": "2.0.0",
1618
"@hideoo/tsconfig": "2.0.1",

packages/starlight-openapi/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"packageManager": "pnpm@8.6.12",
3838
"publishConfig": {
39-
"access": "public"
39+
"access": "public",
40+
"provenance": true
4041
},
4142
"sideEffects": false,
4243
"keywords": [

0 commit comments

Comments
 (0)