Skip to content
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: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:

- name: Install dependencies
run: npm ci

- name: Set version from tag
run: |
VERSION=${GITHUB_REF#refs/tags/v}
npm version "$VERSION" --no-git-tag-version --allow-same-version

- name: Build package
run: npm run build
Expand All @@ -50,7 +55,7 @@ jobs:
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo "version=$VERSION" >> $GITHUB_OUTPUT
# Extract changes from git log or CHANGELOG if available
# Extract changes from git log if available
CHANGES=$(git log --pretty=format:"* %s (%h)" $(git describe --tags --abbrev=0 HEAD^)..HEAD || echo "Initial release")
echo "CHANGES<<EOF" >> $GITHUB_ENV
echo "$CHANGES" >> $GITHUB_ENV
Expand All @@ -64,8 +69,6 @@ jobs:
## Changes in this release

${{ env.CHANGES }}

For full details, see the [CHANGELOG](https://github.com/lightfeed/extractor/blob/main/CHANGELOG.md).
draft: false
prerelease: false

Expand Down
85 changes: 0 additions & 85 deletions CHANGELOG.md

This file was deleted.

15 changes: 7 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ The workflow includes:

## Release Process (Maintainers)

This project uses semantic versioning. To create a new release:
This project uses semantic versioning. To create a new release, tag `main` and push:

```bash
npm version patch # or minor, or major
git push origin main --tags
git tag v0.5.0
git push origin v0.5.0
```

`npm version` automatically bumps the version in `package.json` and `package-lock.json`, creates a commit, and creates a git tag.

When the tag is pushed, GitHub Actions will automatically:
1. Build the package and run tests
2. Create a GitHub Release with notes generated from git history
3. Publish the package to npm
1. Set the version in `package.json` from the tag
2. Build the package and run tests
3. Create a GitHub Release with notes generated from git history
4. Publish the package to npm
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightfeed/extractor",
"version": "0.4.0",
"version": "0.4.1",
"description": "Use LLMs to robustly extract and enrich structured data from HTML and markdown",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Loading