bits-to-dead-trees 2.13.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/bin/check-for-schema-changes +1 -0
- package/.github/bin/sync-playwright-version-to-dockerfile +10 -0
- package/.github/workflows/build-docker-image-of-release.yml +20 -7
- package/.github/workflows/keep-dockerfile-in-sync.yml +25 -0
- package/.tool-versions +1 -1
- package/CHANGELOG.md +12 -0
- package/Dockerfile +1 -1
- package/README.md +1 -1
- package/package.json +5 -5
- package/pdf_request_body.json +1 -1
|
@@ -8,6 +8,7 @@ cd "${PATH_TO_SCRIPT}/../.." || exit 1
|
|
|
8
8
|
|
|
9
9
|
if [[ $(git status --porcelain | grep pdf_request_body.json) ]]; then
|
|
10
10
|
echo "🚨 Detected schema changes that haven't been committed, please run 'npm run update-schemas' and commit the changes."
|
|
11
|
+
git status
|
|
11
12
|
exit 2
|
|
12
13
|
else
|
|
13
14
|
echo "All good, no schema changes detected. 🏝"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -o nounset
|
|
4
|
+
|
|
5
|
+
PATH_TO_SCRIPT=$(dirname $(realpath $0))
|
|
6
|
+
|
|
7
|
+
cd "${PATH_TO_SCRIPT}/../.." || exit 1
|
|
8
|
+
|
|
9
|
+
PLAYWRIGHT_VERSION=$(cat package-lock.json | jq -r '.dependencies."playwright-core".version')
|
|
10
|
+
sed -i "s|FROM mcr.microsoft.com/playwright:v[^ ]*|FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}|" Dockerfile
|
|
@@ -3,6 +3,12 @@ name: Build and Push Docker Image
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
ref_name:
|
|
9
|
+
description: "The ref the image should be built for. This is usually the tag of the release."
|
|
10
|
+
required: true
|
|
11
|
+
type: string
|
|
6
12
|
|
|
7
13
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
8
14
|
|
|
@@ -11,11 +17,15 @@ jobs:
|
|
|
11
17
|
runs-on: ubuntu-latest
|
|
12
18
|
permissions:
|
|
13
19
|
contents: write
|
|
20
|
+
packages: write
|
|
21
|
+
pull-requests: write
|
|
14
22
|
steps:
|
|
23
|
+
- name: Set tag name
|
|
24
|
+
run: echo "TAG_NAME=${{ inputs.ref_name || github.ref_name }}" >> $GITHUB_ENV
|
|
15
25
|
- name: Checkout Repo
|
|
16
26
|
uses: actions/checkout@v4
|
|
17
27
|
with:
|
|
18
|
-
ref: ${{
|
|
28
|
+
ref: ${{ env.TAG_NAME }}
|
|
19
29
|
|
|
20
30
|
- name: Login to GitHub Container Registry
|
|
21
31
|
uses: docker/login-action@v3
|
|
@@ -30,14 +40,17 @@ jobs:
|
|
|
30
40
|
file: Dockerfile
|
|
31
41
|
push: true
|
|
32
42
|
tags: |
|
|
33
|
-
ghcr.io/${{ github.repository }}:${{
|
|
43
|
+
ghcr.io/${{ github.repository }}:${{ env.TAG_NAME }}
|
|
34
44
|
|
|
35
45
|
- name: Update version in README
|
|
36
46
|
run: |
|
|
37
|
-
sed 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${{
|
|
47
|
+
sed -i 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${{ env.TAG_NAME }}|' README.md
|
|
38
48
|
|
|
39
|
-
- name:
|
|
40
|
-
uses:
|
|
49
|
+
- name: Create Pull Request
|
|
50
|
+
uses: peter-evans/create-pull-request@v6
|
|
41
51
|
with:
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
commit-message: "🤖 Update version of docker image in README to ${{ env.TAG_NAME }}"
|
|
53
|
+
title: "🤖 Update version in README after release"
|
|
54
|
+
base: main
|
|
55
|
+
body: |
|
|
56
|
+
Updates the referenced docker image version in the README to ${{ env.TAG_NAME }}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Keep dockerfile in sync
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "depfu/update/npm/playwright-core-**"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
run-prettier:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout Repo
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
ref: ${{ github.head_ref }}
|
|
18
|
+
|
|
19
|
+
- name: Update Dockerfile
|
|
20
|
+
run: .github/bin/sync-playwright-version-to-dockerfile
|
|
21
|
+
|
|
22
|
+
- name: Commit changes
|
|
23
|
+
uses: stefanzweifel/git-auto-commit-action@v5
|
|
24
|
+
with:
|
|
25
|
+
commit_message: "🤖 Update playwright-core in Dockerfile after depfu update"
|
package/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
nodejs 20.
|
|
1
|
+
nodejs 20.12.2
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# bits-to-dead-trees
|
|
2
2
|
|
|
3
|
+
## 2.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#326](https://github.com/rmehner/bits-to-dead-trees/pull/326) [`81a2d4f`](https://github.com/rmehner/bits-to-dead-trees/commit/81a2d4f51ed49fe871a8794f7e49af0fbfb34997) Thanks [@depfu](https://github.com/apps/depfu)! - Update to Playwright 1.43.1
|
|
8
|
+
|
|
9
|
+
## 2.13.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e6cea9c`](https://github.com/rmehner/bits-to-dead-trees/commit/e6cea9c5d43028e588c31dc97e8f1435b5ae3381) Thanks [@rmehner](https://github.com/rmehner)! - Upgrade to Playwright 1.42.1
|
|
14
|
+
|
|
3
15
|
## 2.13.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/Dockerfile
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bits-to-dead-trees",
|
|
3
3
|
"author": "Robin Mehner <robin@coding-robin.de>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"description": "Turn HTML into PDF files",
|
|
6
6
|
"repository": "github:rmehner/bits-to-dead-trees",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"ts-check": "npx tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"fastify": "^4.26.
|
|
34
|
-
"playwright-core": "^1.
|
|
33
|
+
"fastify": "^4.26.2",
|
|
34
|
+
"playwright-core": "^1.43.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@changesets/changelog-github": "^0.5.0",
|
|
38
38
|
"@changesets/cli": "^2.27.1",
|
|
39
|
-
"@types/lodash": "^4.
|
|
39
|
+
"@types/lodash": "^4.17.0",
|
|
40
40
|
"@types/node": "20.11.22",
|
|
41
41
|
"eslint": "^8.57.0",
|
|
42
42
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"pino-pretty": "^10.3.1",
|
|
45
45
|
"prettier": "^3.2.5",
|
|
46
46
|
"typescript-json-schema": "^0.63.0",
|
|
47
|
-
"vitest": "^1.
|
|
47
|
+
"vitest": "^1.5.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/pdf_request_body.json
CHANGED
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
},
|
|
393
393
|
"Logger": {
|
|
394
394
|
"additionalProperties": false,
|
|
395
|
-
"description": "Playwright generates a lot of logs and they are accessible via the pluggable logger sink.\n\n```js\nconst { chromium } = require('playwright'); // Or 'firefox' or 'webkit'.\n\n(async () => {\n const browser = await chromium.launch({\n logger: {\n isEnabled: (name, severity) => name === '
|
|
395
|
+
"description": "Playwright generates a lot of logs and they are accessible via the pluggable logger sink.\n\n```js\nconst { chromium } = require('playwright'); // Or 'firefox' or 'webkit'.\n\n(async () => {\n const browser = await chromium.launch({\n logger: {\n isEnabled: (name, severity) => name === 'api',\n log: (name, severity, message, args) => console.log(`${name} ${message}`)\n }\n });\n // ...\n})();\n```",
|
|
396
396
|
"type": "object"
|
|
397
397
|
},
|
|
398
398
|
"RegExp": {
|