bits-to-dead-trees 0.0.4 → 0.0.7

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