@codfish/actions-playground 0.0.0-PR-39--0537e18 → 0.0.0-PR-42--9066479

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: |
@@ -65,13 +65,43 @@ jobs:
65
65
  id: semantic
66
66
  with:
67
67
  branches: |
68
+ ['main', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
69
+ additional_packages: |
70
+ ['@google/semantic-release-replace-plugin', '@semantic-release/git']
71
+ plugins: |
68
72
  [
69
- '+([0-9])?(.{+([0-9]),x}).x',
70
- 'main',
71
- 'next',
72
- 'next-major',
73
- {name: 'beta', prerelease: true},
74
- {name: 'alpha', prerelease: true}
73
+ '@semantic-release/commit-analyzer',
74
+ [
75
+ '@google/semantic-release-replace-plugin',
76
+ {
77
+ 'replacements': [
78
+ {
79
+ 'files': ['Dockerfile'],
80
+ 'from': 'RELEASE_VERSION=.*',
81
+ 'to': 'RELEASE_VERSION=${nextRelease.version}',
82
+ 'results': [
83
+ {
84
+ 'file': 'Dockerfile',
85
+ 'hasChanged': true,
86
+ 'numMatches': 1,
87
+ 'numReplacements': 1
88
+ }
89
+ ],
90
+ 'countMatches': true
91
+ }
92
+ ]
93
+ }
94
+ ],
95
+ [
96
+ '@semantic-release/git',
97
+ {
98
+ 'assets': ['Dockerfile'],
99
+ 'message': 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
100
+ }
101
+ ],
102
+ '@semantic-release/release-notes-generator',
103
+ '@semantic-release/npm',
104
+ '@semantic-release/github'
75
105
  ]
76
106
  env:
77
107
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -103,7 +133,6 @@ jobs:
103
133
  rm ./docs/.gitignore
104
134
  env:
105
135
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
106
-
107
136
  # does not work...
108
137
  # Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
109
138
  # 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.1.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": "0.0.0-PR-39--0537e18",
3
+ "version": "0.0.0-PR-42--9066479",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "main": "dist/index.js",
6
6
  "private": false,
@@ -23,7 +23,9 @@
23
23
  "type": "git",
24
24
  "url": "git+https://github.com/codfish/actions-playground.git"
25
25
  },
26
- "keywords": [],
26
+ "keywords": [
27
+ "foobar"
28
+ ],
27
29
  "author": "",
28
30
  "license": "MIT",
29
31
  "bugs": {
package/test.txt CHANGED
@@ -1 +1 @@
1
- foobarly
1
+ foobar