@codfish/actions-playground 4.0.0 → 4.3.0

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.
@@ -22,7 +22,7 @@ jobs:
22
22
 
23
23
  - uses: actions/setup-node@v1
24
24
  with:
25
- node-version: 12.x
25
+ node-version: 18.x
26
26
 
27
27
  - name: docker login
28
28
  run: |
@@ -37,13 +37,12 @@ jobs:
37
37
  run: docker build -t codfish/actions-playground:latest .
38
38
 
39
39
  - name: semantic release dry run
40
- uses: docker://ghcr.io/codfish/semantic-release-action:v1
40
+ uses: docker://ghcr.io/codfish/semantic-release-action:v2
41
41
  id: semantic-dry-run
42
42
  with:
43
43
  dry_run: true
44
44
  branches: |
45
45
  [
46
- '+([0-9])?(.{+([0-9]),x}).x',
47
46
  'main',
48
47
  'next',
49
48
  'next-major',
@@ -61,17 +60,47 @@ jobs:
61
60
  SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
62
61
 
63
62
  - name: semantic release
64
- uses: docker://ghcr.io/codfish/semantic-release-action:v1
63
+ uses: docker://ghcr.io/codfish/semantic-release-action:v2
65
64
  id: semantic
66
65
  with:
67
66
  branches: |
67
+ ['main', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
68
+ additional_packages: |
69
+ ['@google/semantic-release-replace-plugin', '@semantic-release/git']
70
+ plugins: |
68
71
  [
69
- '+([0-9])?(.{+([0-9]),x}).x',
70
- 'main',
71
- 'next',
72
- 'next-major',
73
- {name: 'beta', prerelease: true},
74
- {name: 'alpha', prerelease: true}
72
+ '@semantic-release/commit-analyzer',
73
+ [
74
+ '@google/semantic-release-replace-plugin',
75
+ {
76
+ 'replacements': [
77
+ {
78
+ 'files': ['Dockerfile'],
79
+ 'from': 'RELEASE_VERSION=.*',
80
+ 'to': 'RELEASE_VERSION=${nextRelease.version}',
81
+ 'results': [
82
+ {
83
+ 'file': 'Dockerfile',
84
+ 'hasChanged': true,
85
+ 'numMatches': 1,
86
+ 'numReplacements': 1
87
+ }
88
+ ],
89
+ 'countMatches': true
90
+ }
91
+ ]
92
+ }
93
+ ],
94
+ [
95
+ '@semantic-release/git',
96
+ {
97
+ 'assets': ['Dockerfile'],
98
+ 'message': 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
99
+ }
100
+ ],
101
+ '@semantic-release/release-notes-generator',
102
+ '@semantic-release/npm',
103
+ '@semantic-release/github'
75
104
  ]
76
105
  env:
77
106
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -103,7 +132,6 @@ jobs:
103
132
  rm ./docs/.gitignore
104
133
  env:
105
134
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
106
-
107
135
  # does not work...
108
136
  # Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
109
137
  # Deployment failed! ❌
@@ -14,7 +14,7 @@ jobs:
14
14
 
15
15
  - uses: actions/setup-node@v1
16
16
  with:
17
- node-version: 12.x
17
+ node-version: 18.x
18
18
  registry-url: 'https://registry.npmjs.org'
19
19
 
20
20
  - name: troubleshooting
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18.7.0
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:12
1
+ FROM node:18.7.0
2
2
 
3
3
  RUN mkdir /app
4
4
  WORKDIR /app
@@ -8,6 +8,8 @@ RUN npm ci
8
8
 
9
9
  COPY src src
10
10
 
11
+ ENV RELEASE_VERSION=4.3.0
12
+
11
13
  RUN npm run build
12
14
 
13
15
  EXPOSE 80
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "4.0.0",
3
+ "version": "4.3.0",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "main": "dist/index.js",
6
6
  "private": false,