bits-to-dead-trees 2.13.0 → 2.13.1
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.
|
@@ -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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# bits-to-dead-trees
|
|
2
2
|
|
|
3
|
+
## 2.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e6cea9c`](https://github.com/rmehner/bits-to-dead-trees/commit/e6cea9c5d43028e588c31dc97e8f1435b5ae3381) Thanks [@rmehner](https://github.com/rmehner)! - Upgrade to Playwright 1.42.1
|
|
8
|
+
|
|
3
9
|
## 2.13.0
|
|
4
10
|
|
|
5
11
|
### 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.13.
|
|
4
|
+
"version": "2.13.1",
|
|
5
5
|
"description": "Turn HTML into PDF files",
|
|
6
6
|
"repository": "github:rmehner/bits-to-dead-trees",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"fastify": "^4.26.1",
|
|
34
|
-
"playwright-core": "^1.42.
|
|
34
|
+
"playwright-core": "^1.42.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@changesets/changelog-github": "^0.5.0",
|