@codfish/actions-playground 4.0.0 → 4.1.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 +82 -35
- package/.github/workflows/validate.yml +1 -1
- package/Dockerfile +2 -0
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
|
|
23
23
|
- uses: actions/setup-node@v1
|
|
24
24
|
with:
|
|
25
|
-
node-version:
|
|
25
|
+
node-version: 16.x
|
|
26
26
|
|
|
27
27
|
- name: docker login
|
|
28
28
|
run: |
|
|
@@ -43,7 +43,6 @@ jobs:
|
|
|
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',
|
|
@@ -60,49 +59,94 @@ jobs:
|
|
|
60
59
|
env:
|
|
61
60
|
SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
|
|
62
61
|
|
|
63
|
-
-
|
|
64
|
-
uses: docker://ghcr.io/codfish/semantic-release-action:v1
|
|
65
|
-
id: semantic
|
|
62
|
+
- uses: codfish/semantic-release-action@additional-packages
|
|
66
63
|
with:
|
|
67
64
|
branches: |
|
|
65
|
+
['main', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
|
|
66
|
+
additional_packages: |
|
|
67
|
+
['@google/semantic-release-replace-plugin', '@semantic-release/git']
|
|
68
|
+
plugins: |
|
|
68
69
|
[
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
"@semantic-release/commit-analyzer",
|
|
71
|
+
[
|
|
72
|
+
"@google/semantic-release-replace-plugin",
|
|
73
|
+
{
|
|
74
|
+
"replacements": [
|
|
75
|
+
{
|
|
76
|
+
"files": ["Dockerfile"],
|
|
77
|
+
"from": "RELEASE_VERSION=.*",
|
|
78
|
+
"to": "RELEASE_VERSION=${nextRelease.version}",
|
|
79
|
+
"results": [
|
|
80
|
+
{
|
|
81
|
+
"file": "Dockerfile",
|
|
82
|
+
"hasChanged": true,
|
|
83
|
+
"numMatches": 1,
|
|
84
|
+
"numReplacements": 1
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"countMatches": true
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
"@semantic-release/git",
|
|
94
|
+
{
|
|
95
|
+
"assets": ["Dockerfile"],
|
|
96
|
+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"@semantic-release/release-notes-generator",
|
|
100
|
+
"@semantic-release/npm",
|
|
101
|
+
"@semantic-release/github"
|
|
75
102
|
]
|
|
76
103
|
env:
|
|
77
104
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
78
105
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
79
106
|
|
|
80
|
-
- name:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
107
|
+
# - name: semantic release
|
|
108
|
+
# uses: docker://ghcr.io/codfish/semantic-release-action:v1
|
|
109
|
+
# id: semantic
|
|
110
|
+
# with:
|
|
111
|
+
# branches: |
|
|
112
|
+
# [
|
|
113
|
+
# '+([0-9])?(.{+([0-9]),x}).x',
|
|
114
|
+
# 'main',
|
|
115
|
+
# 'next',
|
|
116
|
+
# 'next-major',
|
|
117
|
+
# {name: 'beta', prerelease: true},
|
|
118
|
+
# {name: 'alpha', prerelease: true}
|
|
119
|
+
# ]
|
|
120
|
+
# env:
|
|
121
|
+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
122
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
88
123
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
|
|
124
|
+
# - name: push docker images to dockerhub & GCR
|
|
125
|
+
# if: steps.semantic.outputs.new-release-published == 'true'
|
|
126
|
+
# run: |
|
|
127
|
+
# docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
|
|
128
|
+
# docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
|
|
129
|
+
# docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
|
|
130
|
+
# docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
|
|
131
|
+
# docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
|
|
98
132
|
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
133
|
+
# docker push codfish/actions-playground:latest
|
|
134
|
+
# docker push codfish/actions-playground:$VERSION_TAG
|
|
135
|
+
# docker push codfish/actions-playground:$MAJOR_TAG
|
|
136
|
+
# docker push ghcr.io/codfish/actions-playground:latest
|
|
137
|
+
# docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
|
|
138
|
+
# docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
|
|
139
|
+
# env:
|
|
140
|
+
# VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
|
|
141
|
+
# MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
|
|
142
|
+
|
|
143
|
+
# - name: build docs
|
|
144
|
+
# run: |
|
|
145
|
+
# npm ci --no-save
|
|
146
|
+
# npm run build:docs
|
|
147
|
+
# rm ./docs/.gitignore
|
|
148
|
+
# env:
|
|
149
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
106
150
|
|
|
107
151
|
# does not work...
|
|
108
152
|
# Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
|
|
@@ -114,3 +158,6 @@ jobs:
|
|
|
114
158
|
# with:
|
|
115
159
|
# branch: gh-pages
|
|
116
160
|
# folder: docs
|
|
161
|
+
|
|
162
|
+
# - name: Install extra dependencies
|
|
163
|
+
# run: npm install -g @semantic-release/exec
|
package/Dockerfile
CHANGED