bits-to-dead-trees 0.0.4 → 0.0.5

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.
@@ -31,6 +31,39 @@ jobs:
31
31
  uses: changesets/action@v1
32
32
  with:
33
33
  publish: npm run release
34
+ title: Release new version 🚀
34
35
  env:
35
36
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
37
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38
+ build-docker:
39
+ name: Build and push docker image
40
+ runs-on: ubuntu-latest
41
+ needs: ["release"]
42
+ if: needs.release.changesets.outputs.published == 'true'
43
+ steps:
44
+ - name: Checkout Repo
45
+ uses: actions/checkout@v3
46
+
47
+ - name: Determine version
48
+ run: |
49
+ echo "VERSION=$(cat package.json | jq .version}" >> $GITHUB_ENV
50
+
51
+ - name: Checkout tag
52
+ run: |
53
+ git fetch --tags
54
+ git checkout "v${{ env.VERSION }}"
55
+
56
+ - name: Login to GitHub Container Registry
57
+ uses: docker/login-action@v1
58
+ with:
59
+ registry: ghcr.io
60
+ username: ${{ github.repository_owner }}
61
+ password: ${{ secrets.GITHUB_TOKEN }}
62
+
63
+ - name: Build and push builder image
64
+ uses: docker/build-push-action@v2
65
+ with:
66
+ file: Dockerfile
67
+ push: true
68
+ tags: |
69
+ ghcr.io/${{ github.repository }}:${{ env.VERSION }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # bits-to-dead-trees
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - fae9c4e: Another try to get automatic Docker builds running
8
+ - ea597c1: More pipeline fixes (at least I hope so)
9
+ - c323966: Move docker build into own job
10
+
3
11
  ## 0.0.4
4
12
 
5
13
  ### 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.5",
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 }}