Skip to content

Commit

Permalink
feat: package refinements, CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Apr 3, 2024
1 parent 45a5435 commit 664a599
Show file tree
Hide file tree
Showing 38 changed files with 6,511 additions and 2,281 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/checks.yaml
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
60 changes: 35 additions & 25 deletions .github/workflows/release.yaml
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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to Dojo.js will be documented in this file.

## 0.6.0 -0 3.04.2024

### Added

- Increased batch size of entity query
- Improved burner architecture
- updated to Starknet js

### Changed

### Removed

### Fixed

## 0.5.4 -0 1.02.2024

### Added
Expand Down
Loading

0 comments on commit 664a599

Please sign in to comment.