-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: package refinements, CI updates
- Loading branch information
1 parent
45a5435
commit 664a599
Showing
38 changed files
with
6,511 additions
and
2,281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Checks | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Use NodeJS 20" | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "20" | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: "Setup npm" | ||
run: | | ||
npm set @ponderingdemocritus:registry=https://npm.pkg.github.com/dojoengine | ||
npm set "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" | ||
- name: Install dependencies | ||
run: | | ||
pnpm i | ||
pnpm build | ||
pnpm build-examples | ||
- name: Run tests | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
name: Build and NPM Release | ||
|
||
name: Publish | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- development | ||
- main | ||
|
||
jobs: | ||
create-release: | ||
publish: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Extract version from tag | ||
id: tag-version | ||
run: | | ||
echo "::set-output name=version::${GITHUB_REF#refs/tags/v}" | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create GitHub Release | ||
run: | | ||
curl -s \ | ||
-X POST \ | ||
-H "Authorization: token $GIT_TOKEN" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/releases \ | ||
-d '{ | ||
"tag_name": "v${{ steps.tag-version.outputs.version }}", | ||
"name": "Release v${{ steps.tag-version.outputs.version }}", | ||
"body": "Release of version ${{ steps.tag-version.outputs.version }}", | ||
"draft": false, | ||
"prerelease": false | ||
}' | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: Install dependencies | ||
run: pnpm i | ||
|
||
- name: Build dependencies | ||
run: pnpm run build | ||
|
||
- name: "Version and publish" | ||
env: | ||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor}}@users.noreply.github.com" | ||
if [ ${{ github.base_ref }} = development ]; then | ||
npx lerna version --conventional-commits --conventional-prerelease --preid beta --yes | ||
else | ||
npx lerna version --conventional-commits --conventional-graduate --yes | ||
fi | ||
npx lerna publish from-git --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule dojo-starter
updated
16 files
+16 −16 | .github/workflows/test.yaml | |
+2 −2 | Scarb.lock | |
+8 −3 | Scarb.toml | |
+193 −0 | abis/base/contracts/actions.json | |
+193 −0 | abis/deployments/KATANA/contracts/actions.json | |
+3 −0 | manifests/base/base.toml | |
+7 −0 | manifests/base/contracts/actions.toml | |
+13 −0 | manifests/base/models/moved.toml | |
+18 −0 | manifests/base/models/moves.toml | |
+13 −0 | manifests/base/models/position.toml | |
+3 −0 | manifests/base/world.toml | |
+73 −0 | manifests/deployments/KATANA.toml | |
+10 −13 | scripts/default_auth.sh | |
+12 −0 | scripts/spawn.sh | |
+33 −34 | src/systems/actions.cairo | |
+1 −1 | src/tests/test_world.cairo |
Oops, something went wrong.