Skip to content

Commit

Permalink
ci: switch to beachball for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Oct 2, 2024
1 parent 87179c0 commit 28a0f92
Show file tree
Hide file tree
Showing 11 changed files with 598 additions and 1,018 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eleven-jeans-push.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/kind-kiwis-hammer.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-buttons-sniff.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-countries-play.md

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ jobs:
run: pnpm build
- name: Run test
run: pnpm test:ci
- name: Check change files
run: pnpm beachball check
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 9.7
- name: Setup git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin "https://$(GITHUB_TOKEN)@github.com/apibara/starknet-react"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: pnpm install --strict-peer-dependencies=false --no-frozen-lockfile
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: pnpm run release
commit: "chore: version bump"
title: "chore: version bump"
- name: Publish package
run: pnpm beachball publish --access public --token "$(NPM_TOKEN)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@
"lint:fix": "turbo run lint:fix --parallel",
"format": "turbo run format --parallel",
"format:check": "turbo run format:check --parallel",
"clean": "turbo run clean --parallel",
"release": "pnpm build && pnpm changeset publish"
"clean": "turbo run clean --parallel"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.7",
"@types/react": "^18.3.3",
"turbo": "^2.0.12",
"typescript": "^5.5.4"
"@biomejs/biome": "^1.9.3",
"@types/react": "^18.3.10",
"beachball": "^2.47.1",
"turbo": "^2.1.3",
"typescript": "^5.6.2"
},
"repository": {
"type": "git",
"url": "https://github.com/apibara/starknet-react.git"
},
"engines": {
"node": ">=20",
"pnpm": ">=9"
},
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit 28a0f92

Please sign in to comment.