Skip to content

Commit

Permalink
chore: setup beta publishes on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Oct 8, 2024
1 parent f923485 commit 455c778
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
- name: Build
run: pnpm run ci

- name: Publish
run: pnpx pkg-pr-new publish './packages/*' --comment=update --pnpm

biome:
name: Check Formatting
timeout-minutes: 15
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Create Release Pull Request or Publish to npm
- name: Process Changesets
id: changesets
uses: changesets/action@v1
with:
Expand All @@ -28,3 +28,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BUAPEBOT_SECRET }}
NPM_TOKEN: ${{ secrets.NPM_SECRET }}

- name: Publish Beta
run: pnpm run publish:snapshot
env:
GITHUB_TOKEN: ${{ secrets.BUAPEBOT_SECRET }}
NPM_TOKEN: ${{ secrets.NPM_SECRET }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"lint": "biome check . --write",
"preinstall": "npx only-allow pnpm",
"publish": "changeset version && pnpm run build && changeset publish",
"publish:snapshot": "changeset version --snapshot beta && pnpm run build && changeset publish --snapshot beta --no-git-tag",
"start": "turbo run start --filter !demo-cloudo",
"test": "vitest",
"web": "pnpm run web:docs && turbo run web:dev",
Expand Down

0 comments on commit 455c778

Please sign in to comment.