bits-to-dead-trees 0.0.7 → 0.0.10

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,31 @@
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
+ with:
16
+ ref: ${{ github.ref_name }}
17
+
18
+ - name: Login to GitHub Container Registry
19
+ uses: docker/login-action@v1
20
+ with:
21
+ registry: ghcr.io
22
+ username: ${{ github.repository_owner }}
23
+ password: ${{ secrets.GITHUB_TOKEN }}
24
+
25
+ - name: Build and push builder image
26
+ uses: docker/build-push-action@v2
27
+ with:
28
+ file: Dockerfile
29
+ push: true
30
+ tags: |
31
+ ghcr.io/${{ github.repository }}:${{ github.ref_name }}
@@ -0,0 +1,29 @@
1
+ name: CI
2
+
3
+ on: push
4
+
5
+ concurrency:
6
+ group: ${{ github.ref }}
7
+ cancel-in-progress: true
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout Repo
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Set up Node
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: lts/*
20
+ cache: npm
21
+
22
+ - name: Install npm dependencies
23
+ run: npm ci
24
+
25
+ - name: Run eslint
26
+ run: npm run lint
27
+
28
+ - name: Run prettier
29
+ run: npm run check-format
@@ -9,8 +9,6 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
9
 
10
10
  jobs:
11
11
  release:
12
- outputs:
13
- published: ${{ steps.changesets.outputs.published }}
14
12
  name: Release
15
13
  runs-on: ubuntu-latest
16
14
  steps:
@@ -36,41 +34,5 @@ jobs:
36
34
  publish: npm run release
37
35
  title: Release new version 🚀
38
36
  env:
39
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
+ GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
40
38
  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.10
4
+
5
+ ### Patch Changes
6
+
7
+ - df332b7: Go back to automatic release, but use PAT
8
+
9
+ ## 0.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - ddb70f5: Update eslint
14
+ - 5176013: Add CI setup
15
+
16
+ ## 0.0.8
17
+
18
+ ### Patch Changes
19
+
20
+ - 67dc4a4: Manual release process for now
21
+ - e37239b: Add repository to package.json
22
+
3
23
  ## 0.0.7
4
24
 
5
25
  ### Patch Changes
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "bits-to-dead-trees",
3
3
  "author": "Robin Mehner <robin@coding-robin.de>",
4
- "version": "0.0.7",
4
+ "version": "0.0.10",
5
5
  "description": "Turn HTML into PDF files",
6
+ "repository": "github:rmehner/bits-to-dead-trees",
6
7
  "license": "Apache-2.0",
7
8
  "keywords": [
8
9
  "html",
@@ -14,6 +15,7 @@
14
15
  },
15
16
  "main": "dist/index.js",
16
17
  "scripts": {
18
+ "check-format": "prettier --check 'src/**/*.ts'",
17
19
  "clean": "rimraf dist",
18
20
  "lint": "eslint src/*.ts",
19
21
  "format": "prettier --write src/**/*.{ts,json}",
@@ -36,7 +38,7 @@
36
38
  "@typescript-eslint/eslint-plugin": "^5.18.0",
37
39
  "@typescript-eslint/parser": "^5.18.0",
38
40
  "concurrently": "^7.1.0",
39
- "eslint": "^8.12.0",
41
+ "eslint": "^8.13.0",
40
42
  "eslint-config-prettier": "^8.5.0",
41
43
  "nodemon": "^2.0.15",
42
44
  "pino-pretty": "^7.6.1",