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