Skip to content

Commit a56b3e4

Browse files
authored
chore: setup changeset
1 parent b3a3a78 commit a56b3e4

5 files changed

Lines changed: 862 additions & 3 deletions

File tree

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

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
permissions:
11+
contents: write
12+
id-token: write
13+
pull-requests: write
14+
jobs:
15+
release:
16+
name: Release
17+
runs-on: ubuntu-latest
18+
if: github.repository_owner == 'devsantara'
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6.0.1
22+
with:
23+
fetch-depth: 0
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: '10.28.2'
28+
run_install: false
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '24.11.1'
33+
cache: pnpm
34+
- name: Install Dependencies
35+
run: pnpm install
36+
- name: Run Changesets (version or publish)
37+
uses: changesets/action@v1.5.3
38+
with:
39+
version: pnpm run changeset:version
40+
publish: pnpm run changeset:publish
41+
commit: 'chore(release): version packages'
42+
title: 'chore(release): version packages'
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@devsantara/head",
2+
"name": "@devsantara-labs/head",
33
"version": "0.0.0",
44
"description": "A type-safe HTML head builder",
55
"keywords": [
@@ -11,7 +11,7 @@
1111
"url": "https://github.com/devsantara/head/issues"
1212
},
1313
"license": "MIT",
14-
"author": "devsantara",
14+
"author": "edwintantawi",
1515
"repository": {
1616
"type": "git",
1717
"url": "git+https://github.com/devsantara/head.git"
@@ -30,6 +30,9 @@
3030
"./adapters": "./dist/adapters/index.js",
3131
"./package.json": "./package.json"
3232
},
33+
"publishConfig": {
34+
"access": "public"
35+
},
3336
"scripts": {
3437
"build": "tsdown",
3538
"dev": "tsdown --watch",
@@ -38,9 +41,13 @@
3841
"lint:fix": "oxlint --type-aware --fix",
3942
"lint:ts": "tsc --noEmit",
4043
"format": "oxfmt",
41-
"format:check": "oxfmt --check"
44+
"format:check": "oxfmt --check",
45+
"changeset": "changeset",
46+
"changeset:version": "changeset version",
47+
"changeset:publish": "changeset publish"
4248
},
4349
"devDependencies": {
50+
"@changesets/cli": "^2.29.8",
4451
"oxfmt": "^0.27.0",
4552
"oxlint": "^1.42.0",
4653
"oxlint-tsgolint": "^0.11.4",

0 commit comments

Comments
 (0)