Skip to content

Commit

Permalink
chore: Replace changeset with release-please (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
maou-shonen authored Nov 2, 2024
1 parent 62d89d9 commit d90543c
Show file tree
Hide file tree
Showing 6 changed files with 2,298 additions and 1,704 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

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

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
# The logic below handles the npm publication:
- uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- run: corepack enable
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- run: pnpm install
if: ${{ steps.release.outputs.release_created }}
- run: npm test
if: ${{ steps.release.outputs.release_created }}
- run: npm run build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
37 changes: 0 additions & 37 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"lint": "eslint --quiet .",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage",
"changeset": "changeset"
"coverage": "vitest run --coverage"
},
"peerDependencies": {
"hono": ">=4.0.0",
Expand All @@ -59,7 +58,6 @@
"defu": "^6.1.4"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@eslint/js": "^9.5.0",
"@types/node": "^20.14.2",
"@vitest/coverage-v8": "^2.1.3",
Expand Down
Loading

0 comments on commit d90543c

Please sign in to comment.