@codfish/actions-playground 5.1.0 → 5.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.
- package/.github/workflows/release.yml +71 -51
- package/.github/workflows/validate.yml +16 -0
- package/Dockerfile +1 -1
- package/package.json +2 -1
- package/provisioning/Chart.yml +2 -2
- package/test.txt +7 -1
|
@@ -27,6 +27,35 @@ jobs:
|
|
|
27
27
|
with:
|
|
28
28
|
node-version: 18.x
|
|
29
29
|
|
|
30
|
+
- name: semantic release dry run
|
|
31
|
+
uses: docker://ghcr.io/codfish/semantic-release-action:fix-docker-image
|
|
32
|
+
id: semantic-dry-run
|
|
33
|
+
with:
|
|
34
|
+
dry-run: true
|
|
35
|
+
env:
|
|
36
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
38
|
+
|
|
39
|
+
- name: Dump semantic dry run outputs
|
|
40
|
+
if: steps.semantic-dry-run.outputs.new-release-published == 'true'
|
|
41
|
+
run: |
|
|
42
|
+
echo "Outputs:\n"
|
|
43
|
+
echo "$SEMANTIC_OUTPUTS"
|
|
44
|
+
echo "\n-----\n\nEnvironment Variables:\n"
|
|
45
|
+
echo "NEW_RELEASE_PUBLISHED: $NEW_RELEASE_PUBLISHED"
|
|
46
|
+
echo "RELEASE_VERSION: $RELEASE_VERSION"
|
|
47
|
+
echo "RELEASE_MAJOR: $RELEASE_MAJOR"
|
|
48
|
+
echo "RELEASE_MINOR: $RELEASE_MINOR"
|
|
49
|
+
echo "RELEASE_PATCH: $RELEASE_PATCH"
|
|
50
|
+
echo "RELEASE_NOTES: $RELEASE_NOTES"
|
|
51
|
+
echo "RELEASE_TYPE: $RELEASE_TYPE"
|
|
52
|
+
echo "RELEASE_CHANNEL: $RELEASE_CHANNEL"
|
|
53
|
+
echo "RELEASE_GIT_HEAD: $RELEASE_GIT_HEAD"
|
|
54
|
+
echo "RELEASE_GIT_TAG: $RELEASE_GIT_TAG"
|
|
55
|
+
echo "RELEASE_NAME: $RELEASE_NAME"
|
|
56
|
+
env:
|
|
57
|
+
SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
|
|
58
|
+
|
|
30
59
|
- shell: bash
|
|
31
60
|
run: |
|
|
32
61
|
echo "DOCKER_TAGS=main-${GITHUB_SHA},main,latest" >> $GITHUB_ENV;
|
|
@@ -48,39 +77,11 @@ jobs:
|
|
|
48
77
|
- name: docker build
|
|
49
78
|
run: docker build -t codfish/actions-playground:latest .
|
|
50
79
|
|
|
51
|
-
- name: testing
|
|
52
|
-
run: git ls-remote
|
|
53
|
-
|
|
54
|
-
- name: semantic release dry run
|
|
55
|
-
uses: codfish/semantic-release-action@18-17
|
|
56
|
-
id: semantic-dry-run
|
|
57
|
-
with:
|
|
58
|
-
dry_run: true
|
|
59
|
-
branches: |
|
|
60
|
-
[
|
|
61
|
-
'main',
|
|
62
|
-
'next',
|
|
63
|
-
'next-major',
|
|
64
|
-
{name: 'beta', prerelease: true},
|
|
65
|
-
{name: 'alpha', prerelease: true}
|
|
66
|
-
]
|
|
67
|
-
env:
|
|
68
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
69
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
70
|
-
|
|
71
80
|
- name: semantic-release
|
|
72
|
-
uses: codfish/semantic-release-action
|
|
81
|
+
uses: docker://ghcr.io/codfish/semantic-release-action:fix-docker-image
|
|
73
82
|
id: semantic
|
|
74
83
|
with:
|
|
75
|
-
|
|
76
|
-
[
|
|
77
|
-
'main',
|
|
78
|
-
'next',
|
|
79
|
-
'next-major',
|
|
80
|
-
{name: 'beta', prerelease: true},
|
|
81
|
-
{name: 'alpha', prerelease: true}
|
|
82
|
-
]
|
|
83
|
-
additional_packages: |
|
|
84
|
+
additional-packages: |
|
|
84
85
|
['@google/semantic-release-replace-plugin', '@semantic-release/git']
|
|
85
86
|
plugins: |
|
|
86
87
|
[
|
|
@@ -121,7 +122,27 @@ jobs:
|
|
|
121
122
|
}
|
|
122
123
|
],
|
|
123
124
|
[ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
|
|
124
|
-
|
|
125
|
+
[
|
|
126
|
+
"@semantic-release/release-notes-generator",
|
|
127
|
+
{
|
|
128
|
+
"preset": "conventionalcommits",
|
|
129
|
+
"presetConfig": {
|
|
130
|
+
"types": [
|
|
131
|
+
{ type: 'feat', section: 'Features', hidden: false },
|
|
132
|
+
{ type: 'fix', section: 'Bug Fixes', hidden: false },
|
|
133
|
+
{ type: 'perf', section: 'Performance Improvements', hidden: false },
|
|
134
|
+
{ type: 'revert', section: 'Reverts', hidden: false },
|
|
135
|
+
{ type: 'docs', section: 'Other Updates', hidden: false },
|
|
136
|
+
{ type: 'style', section: 'Other Updates', hidden: false },
|
|
137
|
+
{ type: 'chore', section: 'Other Updates', hidden: false },
|
|
138
|
+
{ type: 'refactor', section: 'Other Updates', hidden: false },
|
|
139
|
+
{ type: 'test', section: 'Other Updates', hidden: false },
|
|
140
|
+
{ type: 'build', section: 'Other Updates', hidden: false },
|
|
141
|
+
{ type: 'ci', section: 'Other Updates', hidden: false }
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
125
146
|
'@semantic-release/npm',
|
|
126
147
|
'@semantic-release/github'
|
|
127
148
|
]
|
|
@@ -130,7 +151,7 @@ jobs:
|
|
|
130
151
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
131
152
|
|
|
132
153
|
- name: Dump semantic outputs
|
|
133
|
-
if: steps.semantic
|
|
154
|
+
if: steps.semantic.outputs.new-release-published == 'true'
|
|
134
155
|
run: |
|
|
135
156
|
echo "Outputs:\n"
|
|
136
157
|
echo "$SEMANTIC_OUTPUTS"
|
|
@@ -147,7 +168,7 @@ jobs:
|
|
|
147
168
|
echo "RELEASE_GIT_TAG: $RELEASE_GIT_TAG"
|
|
148
169
|
echo "RELEASE_NAME: $RELEASE_NAME"
|
|
149
170
|
env:
|
|
150
|
-
SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic
|
|
171
|
+
SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic.outputs) }}
|
|
151
172
|
|
|
152
173
|
- shell: bash
|
|
153
174
|
if: steps.semantic.outputs.new-release-published == 'true'
|
|
@@ -177,21 +198,20 @@ jobs:
|
|
|
177
198
|
env:
|
|
178
199
|
VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
|
|
179
200
|
MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
npm
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# folder: docs
|
|
201
|
+
# - name: build docs
|
|
202
|
+
# run: |
|
|
203
|
+
# npm ci --no-save
|
|
204
|
+
# npm run build:docs
|
|
205
|
+
# rm ./docs/.gitignore
|
|
206
|
+
# env:
|
|
207
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
208
|
+
# does not work...
|
|
209
|
+
# Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
|
|
210
|
+
# Deployment failed! ❌
|
|
211
|
+
# ::set-output name=deployment-status::failed
|
|
212
|
+
#
|
|
213
|
+
# - name: deploy documentation
|
|
214
|
+
# uses: jamesives/github-pages-deploy-action@4.1.0
|
|
215
|
+
# with:
|
|
216
|
+
# branch: gh-pages
|
|
217
|
+
# folder: docs
|
|
@@ -38,6 +38,22 @@ jobs:
|
|
|
38
38
|
${{ runner.os }}-node_modules-${{ steps.setup-node.outputs.node-version }}-${{
|
|
39
39
|
hashFiles('**/package-lock.json') }}
|
|
40
40
|
|
|
41
|
+
- name: semantic release dry run
|
|
42
|
+
uses: codfish/semantic-release-action@fix-docker-image
|
|
43
|
+
with:
|
|
44
|
+
dry-run: true
|
|
45
|
+
env:
|
|
46
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
47
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
48
|
+
|
|
49
|
+
- name: semantic release dry run
|
|
50
|
+
uses: docker://ghcr.io/codfish/semantic-release-action:fix-docker-image
|
|
51
|
+
with:
|
|
52
|
+
dry-run: true
|
|
53
|
+
env:
|
|
54
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
56
|
+
|
|
41
57
|
- name: install dependencies
|
|
42
58
|
if: steps.npm-cache.outputs.cache-hit != 'true'
|
|
43
59
|
run: npm ci --prefer-offline --no-audit
|
package/Dockerfile
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codfish/actions-playground",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "My own testing ground for messing around with GitHub Actions.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@commitlint/cli": "^8.2.0",
|
|
36
36
|
"@commitlint/config-conventional": "^8.2.0",
|
|
37
37
|
"cod-scripts": "^12.0.0",
|
|
38
|
+
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
38
39
|
"jsdoc": "^3.6.3",
|
|
39
40
|
"markdownlint-cli": "^0.18.0"
|
|
40
41
|
},
|
package/provisioning/Chart.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appVersion: 5.
|
|
1
|
+
appVersion: 5.3.0
|
|
2
2
|
name: actions-playground
|
|
3
|
-
version: 5.
|
|
3
|
+
version: 5.3.0
|