Skip to content

Commit 58fc340

Browse files
authored
Merge pull request #369 from dojoengine/feat/changesets
feat: use changeset instead of lerna
2 parents 35ef342 + 987fcb6 commit 58fc340

File tree

18 files changed

+427
-65
lines changed

18 files changed

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

.changeset/seven-elephants-serve.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@dojoengine/core": patch
3+
"@dojoengine/create-burner": patch
4+
"@dojoengine/create-dojo": patch
5+
"@dojoengine/predeployed-connector": patch
6+
"@dojoengine/react": patch
7+
"@dojoengine/sdk": patch
8+
"@dojoengine/state": patch
9+
"@dojoengine/torii-client": patch
10+
"@dojoengine/torii-wasm": patch
11+
"@dojoengine/utils": patch
12+
"@dojoengine/utils-wasm": patch
13+
---
14+
15+
change from lerna to changeset

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: oven-sh/setup-bun@v1
1515
- uses: pnpm/action-setup@v3
1616
with:
17-
version: 9.8.0
17+
version: 10.0.0
1818

1919
- name: Update Submodules
2020
run: git submodule update --init --recursive

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- uses: pnpm/action-setup@v2
2020
with:
21-
version: 9.8.0
21+
version: 10.0.0
2222

2323
- name: Install Protobuf Compiler
2424
run: sudo apt-get install -y protobuf-compiler

.github/workflows/release.yaml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: pnpm/action-setup@v3
2020
with:
21-
version: 9.8.0
21+
version: 10.0.0
2222

2323
- name: Configure Git
2424
run: |
@@ -39,33 +39,11 @@ jobs:
3939
- name: Build packages
4040
run: pnpm run build
4141

42-
- name: Tag and Publish Packages
43-
id: tag_publish
44-
run: |
45-
pnpx lerna version ${{ github.event.inputs.release_type }} --conventional-commits --yes --no-private --force-publish --ignore-scripts
46-
pnpx lerna publish from-git --yes --dist-tag ${{ github.event.inputs.release_type == 'preminor' && 'next' || 'latest' }}
47-
48-
- name: Get Version Tag
49-
id: get_tag
50-
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
51-
52-
- name: Generate Release Body
53-
id: release_body
54-
run: |
55-
if [ -f CHANGELOG.md ]; then
56-
echo "body=$(cat CHANGELOG.md)" >> $GITHUB_OUTPUT
57-
else
58-
echo "body=No changelog provided for this release." >> $GITHUB_OUTPUT
59-
fi
60-
61-
- name: Create GitHub Release
62-
uses: actions/create-release@v1
42+
- name: Create Release Pull Request or Publish to npm
43+
id: changesets
44+
uses: changesets/action@v1
45+
with:
46+
publish: pnpm release
6347
env:
6448
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
66-
with:
67-
tag_name: ${{ steps.get_tag.outputs.TAG }}
68-
release_name: Release
69-
body_path: CHANGELOG.md
70-
draft: false
71-
prerelease: false
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

examples/example-nodejs-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "torii-bot",
2+
"name": "example-nodejs-bot",
33
"module": "index.ts",
44
"version": "0.0.0",
55
"type": "module",

examples/example-vanillajs-phaser-recs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phaser",
2+
"name": "example-vanillajs-phaser-recs",
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",

examples/example-vite-kitchen-sink/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "sink",
2+
"name": "example-vite-kitchen-sink",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

examples/example-vite-react-app-recs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-example",
2+
"name": "example-vite-react-app-recs",
33
"private": false,
44
"version": "0.0.1",
55
"type": "module",

0 commit comments

Comments
 (0)