@codfish/actions-playground 4.0.0-beta.1 → 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.
@@ -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: 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
- - name: semantic release
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
- '+([0-9])?(.{+([0-9]),x}).x',
70
- 'main',
71
- 'next',
72
- 'next-major',
73
- {name: 'beta', prerelease: true},
74
- {name: 'alpha', prerelease: true}
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: push docker images to dockerhub & GCR
81
- if: steps.semantic.outputs.new-release-published == 'true'
82
- run: |
83
- docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
84
- docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
85
- docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
86
- docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
87
- docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
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
- docker push codfish/actions-playground:latest
90
- docker push codfish/actions-playground:$VERSION_TAG
91
- docker push codfish/actions-playground:$MAJOR_TAG
92
- docker push ghcr.io/codfish/actions-playground:latest
93
- docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
94
- docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
95
- env:
96
- VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
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
- - name: build docs
100
- run: |
101
- npm ci --no-save
102
- npm run build:docs
103
- rm ./docs/.gitignore
104
- env:
105
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
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
@@ -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: 16.x
18
18
  registry-url: 'https://registry.npmjs.org'
19
19
 
20
20
  - name: troubleshooting
package/Dockerfile CHANGED
@@ -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": "4.0.0-beta.1",
3
+ "version": "4.1.0",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "main": "dist/index.js",
6
6
  "private": false,
package/test.txt CHANGED
@@ -1 +1 @@
1
- foobaz
1
+ foobar