Skip to content

chore: replace standard-version with changelogen #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,8 @@ jobs:
- name: Build
run: yarn build

- name: Generate Release Body
run: npx extract-changelog-release > RELEASE_BODY.md

- name: Publish to NPM
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
bodyFile: "RELEASE_BODY.md"
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ import "normally-transformed"; // This will remain 'normally-transformed', even
## Project Guidelines for Contributors

- Package Manager: `yarn` (`yarn install`)
- Format before commit: `prettier` (`yarn format`)
- Commit messages: [Conventional Commit Specs](https://www.conventionalcommits.org/en/v1.0.0/)
- Format before commit: `prettier` (`yarn run format`)
- Releases: `standard-version` (`yarn run release`)
- Releases: `changelogen` (`yarn release`)

```shell
GH_TOKEN=$(gh auth token) yarn release
```

## Alternatives

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"compile": "tsc",
"build": "rm -rf dist && yarn run clean && yarn run compile",
"test": "yarn test/ install && yarn test/ add-package && yarn test/ test",
"release": "standard-version",
"release": "changelogen --release --push",
"--------------": "",
"format": "prettier --write .",
"clean": "rm -rf dist \"**/*.tsbuildinfo\" ./test/projects/nx/dist",
Expand Down Expand Up @@ -58,8 +58,8 @@
"@types/node": "^18.19.43",
"@types/ts-expose-internals": "npm:[email protected]",
"@types/ts-node": "npm:ts-node@^10.9.2",
"changelogen": "^0.5.5",
"prettier": "^3.3.3",
"standard-version": "^9.5.0",
"ts-patch": "^3.2.1",
"typescript": "^5.5.4"
},
Expand Down
Loading