bits-to-dead-trees 0.0.3 → 0.0.6

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.
@@ -21,6 +21,7 @@ jobs:
21
21
  - name: Setup Node.js
22
22
  uses: actions/setup-node@v3
23
23
  with:
24
+ cache: npm
24
25
  node-version: lts/*
25
26
 
26
27
  - name: Install Dependencies
@@ -31,6 +32,43 @@ jobs:
31
32
  uses: changesets/action@v1
32
33
  with:
33
34
  publish: npm run release
35
+ title: Release new version 🚀
34
36
  env:
35
37
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
38
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39
+ build-docker:
40
+ name: Build and push docker image
41
+ runs-on: ubuntu-latest
42
+ needs: ["release"]
43
+ # https://github.com/actions/runner/issues/491#issuecomment-850884422 ¯\_(ツ)_/¯
44
+ if: |
45
+ always() &&
46
+ needs.release.result == 'success' &&
47
+ needs.release.changesets.outputs.published == 'true'
48
+ steps:
49
+ - name: Checkout Repo
50
+ uses: actions/checkout@v3
51
+
52
+ - name: Determine version
53
+ run: |
54
+ echo "VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
55
+
56
+ - name: Checkout tag
57
+ run: |
58
+ git fetch --tags
59
+ git checkout "v${{ env.VERSION }}"
60
+
61
+ - name: Login to GitHub Container Registry
62
+ uses: docker/login-action@v1
63
+ with:
64
+ registry: ghcr.io
65
+ username: ${{ github.repository_owner }}
66
+ password: ${{ secrets.GITHUB_TOKEN }}
67
+
68
+ - name: Build and push builder image
69
+ uses: docker/build-push-action@v2
70
+ with:
71
+ file: Dockerfile
72
+ push: true
73
+ tags: |
74
+ ghcr.io/${{ github.repository }}:${{ env.VERSION }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 7a28fc8: Last attempt to fix the docker pipeline for today
8
+
9
+ ## 0.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - fae9c4e: Another try to get automatic Docker builds running
14
+ - ea597c1: More pipeline fixes (at least I hope so)
15
+ - c323966: Move docker build into own job
16
+
17
+ ## 0.0.4
18
+
19
+ ### Patch Changes
20
+
21
+ - b7574f0: Fix release pipeline for Docker image
22
+
3
23
  ## 0.0.3
4
24
 
5
25
  ### Patch Changes
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": "0.0.3",
4
+ "version": "0.0.6",
5
5
  "description": "Turn HTML into PDF files",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  "eslint": "^8.12.0",
40
40
  "eslint-config-prettier": "^8.5.0",
41
41
  "nodemon": "^2.0.15",
42
- "pino-pretty": "^7.6.0",
42
+ "pino-pretty": "^7.6.1",
43
43
  "prettier": "^2.6.2",
44
44
  "rimraf": "^3.0.2",
45
45
  "typescript": "^4.6.3",
@@ -1,30 +0,0 @@
1
- name: Build and Push Docker Image
2
-
3
- on:
4
- push:
5
- tags:
6
- - "v*"
7
-
8
- concurrency: ${{ github.workflow }}-${{ github.ref }}
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Checkout Repo
15
- uses: actions/checkout@v3
16
-
17
- - name: Login to GitHub Container Registry
18
- uses: docker/login-action@v1
19
- with:
20
- registry: ghcr.io
21
- username: ${{ github.repository_owner }}
22
- password: ${{ secrets.GITHUB_TOKEN }}
23
-
24
- - name: Build and push builder image
25
- uses: docker/build-push-action@v2
26
- with:
27
- file: Dockerfile
28
- push: true
29
- tags: |
30
- ghcr.io/${{ github.repository }}:${{ github.ref_name }}