Skip to content

Commit

Permalink
add release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdjerred committed Jun 2, 2024
1 parent 3b0b3c4 commit bf3c8f2
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 8 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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
with:
release-type: simple
160 changes: 154 additions & 6 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"rss-parser": "^3.13.0",
"sanitize-html": "^2.13.0",
"truncate-html": "^1.1.1",
"yargs": "^17.7.2",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/cache.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as R from "remeda";
import type { Configuration, Cache, Result, ResultEntry, CacheEntry, Source } from "./types.js";
import { fetch } from "./fetch.js";

export async function runWithCache(config: Configuration, cache: Cache): Promise<[Result, Cache]> {
const promises = R.pipe(
Expand Down
1 change: 0 additions & 1 deletion src/cli/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function fetch(source: Source, length: number): Promise<ResultEntry
url: firstItem.link,
date: new Date(firstItem.date),
source,
preview: preview ? truncate(sanitizeHtml(preview), length) : undefined,
preview: preview ? truncate.default(sanitizeHtml(preview), length) : undefined,
};
} catch (e) {
console.error(`Error fetching ${source.url}: ${e as string}`);
Expand Down

0 comments on commit bf3c8f2

Please sign in to comment.