Skip to content

Commit f7c6b25

Browse files
committed
changesets integration
1 parent cf61604 commit f7c6b25

File tree

5 files changed

+765
-34
lines changed

5 files changed

+765
-34
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

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "gusbueno/versusmaker" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "master",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js 18
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18
22+
23+
- name: Install Dependencies
24+
run: yarn
25+
26+
- name: Create Release Pull Request or Publish to npm
27+
id: changesets
28+
uses: changesets/action@v1
29+
with:
30+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
31+
publish: yarn release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+22-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"version": "1.0.2",
3+
"name": "versusmaker",
4+
"author": "Gustavo Bueno",
5+
"module": "dist/versusmaker.esm.js",
36
"license": "MIT",
47
"main": "dist/index.js",
58
"typings": "dist/index.d.ts",
@@ -17,7 +20,8 @@
1720
"lint": "tsdx lint",
1821
"prepare": "tsdx build",
1922
"size": "size-limit",
20-
"analyze": "size-limit --why"
23+
"analyze": "size-limit --why",
24+
"release": "changeset publish"
2125
},
2226
"husky": {
2327
"hooks": {
@@ -36,9 +40,10 @@
3640
"preset": "ts-jest",
3741
"testEnvironment": "node"
3842
},
39-
"name": "versusmaker",
40-
"author": "Gustavo Bueno",
41-
"module": "dist/versusmaker.esm.js",
43+
"publishConfig": {
44+
"access": "public",
45+
"registry": "https://registry.npmjs.org/"
46+
},
4247
"size-limit": [
4348
{
4449
"path": "dist/versusmaker.cjs.production.min.js",
@@ -49,17 +54,6 @@
4954
"limit": "10 KB"
5055
}
5156
],
52-
"devDependencies": {
53-
"@size-limit/preset-small-lib": "^8.2.4",
54-
"@types/uuid": "^9.0.1",
55-
"husky": "^8.0.3",
56-
"jest": "^29.5.0",
57-
"size-limit": "^8.2.4",
58-
"ts-jest": "^29.0.5",
59-
"tsdx": "^0.14.1",
60-
"tslib": "^2.5.0",
61-
"typescript": "^5.0.2"
62-
},
6357
"description": "Matchmaking library for multiplayer games",
6458
"directories": {
6559
"test": "test"
@@ -81,5 +75,18 @@
8175
"homepage": "https://github.com/gusbueno/versusmaker#readme",
8276
"dependencies": {
8377
"uuid": "^9.0.0"
78+
},
79+
"devDependencies": {
80+
"@changesets/changelog-github": "^0.4.8",
81+
"@changesets/cli": "^2.26.1",
82+
"@size-limit/preset-small-lib": "^8.2.4",
83+
"@types/uuid": "^9.0.1",
84+
"husky": "^8.0.3",
85+
"jest": "^29.5.0",
86+
"size-limit": "^8.2.4",
87+
"ts-jest": "^29.0.5",
88+
"tsdx": "^0.14.1",
89+
"tslib": "^2.5.0",
90+
"typescript": "^5.0.2"
8491
}
8592
}

0 commit comments

Comments
 (0)