Skip to content

Commit cea9b64

Browse files
committed
build: setup changeset
1 parent e1c92b5 commit cea9b64

6 files changed

Lines changed: 918 additions & 1 deletion

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+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
permissions:
13+
packages: write
14+
contents: write
15+
issues: write
16+
pull-requests: write
17+
outputs:
18+
published: ${{ steps.changesets.outputs.publishedPackages }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
registry-url: https://npm.pkg.github.com/
24+
- uses: pnpm/action-setup@v4
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
run_install: true
29+
- run: pnpm build
30+
- id: changesets
31+
uses: changesets/action@v1
32+
with:
33+
publish: pnpm changeset publish
34+
version: pnpm changeset version
35+
title: Release Package
36+
commit: 'build: bump version'
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@gitroll-dev:registry=https://npm.pkg.github.com
2+
shell-emulator=true

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "university-list",
2+
"name": "@gitroll-dev/university-list",
33
"version": "2.0.0",
44
"description": "",
55
"type": "module",
@@ -13,6 +13,8 @@
1313
"author": "",
1414
"license": "ISC",
1515
"devDependencies": {
16+
"@changesets/changelog-github": "^0.5.2",
17+
"@changesets/cli": "^2.29.8",
1618
"@types/node": "^25.0.2",
1719
"tlds2": "^2.2.19",
1820
"tsup": "^8.5.1",

0 commit comments

Comments
 (0)