@codfish/actions-playground 0.0.0-PR-59--7322e3d → 0.0.0-PR-61--9cbe1a6

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.
@@ -27,6 +27,44 @@ jobs:
27
27
  with:
28
28
  node-version: 18.x
29
29
 
30
+ - name: semantic release dry run
31
+ uses: 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: semantic release dry run
40
+ uses: docker://ghcr.io/codfish/semantic-release-action@REF_NAME
41
+ id: semantic-dry-run
42
+ with:
43
+ dry-run: true
44
+ env:
45
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47
+
48
+ - name: Dump semantic dry run outputs
49
+ if: steps.semantic-dry-run.outputs.new-release-published == 'true'
50
+ run: |
51
+ echo "Outputs:\n"
52
+ echo "$SEMANTIC_OUTPUTS"
53
+ echo "\n-----\n\nEnvironment Variables:\n"
54
+ echo "NEW_RELEASE_PUBLISHED: $NEW_RELEASE_PUBLISHED"
55
+ echo "RELEASE_VERSION: $RELEASE_VERSION"
56
+ echo "RELEASE_MAJOR: $RELEASE_MAJOR"
57
+ echo "RELEASE_MINOR: $RELEASE_MINOR"
58
+ echo "RELEASE_PATCH: $RELEASE_PATCH"
59
+ echo "RELEASE_NOTES: $RELEASE_NOTES"
60
+ echo "RELEASE_TYPE: $RELEASE_TYPE"
61
+ echo "RELEASE_CHANNEL: $RELEASE_CHANNEL"
62
+ echo "RELEASE_GIT_HEAD: $RELEASE_GIT_HEAD"
63
+ echo "RELEASE_GIT_TAG: $RELEASE_GIT_TAG"
64
+ echo "RELEASE_NAME: $RELEASE_NAME"
65
+ env:
66
+ SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
67
+
30
68
  - shell: bash
31
69
  run: |
32
70
  echo "DOCKER_TAGS=main-${GITHUB_SHA},main,latest" >> $GITHUB_ENV;
@@ -48,17 +86,8 @@ jobs:
48
86
  - name: docker build
49
87
  run: docker build -t codfish/actions-playground:latest .
50
88
 
51
- - name: semantic release dry run
52
- uses: codfish/semantic-release-action@v2
53
- id: semantic-dry-run
54
- with:
55
- dry-run: true
56
- env:
57
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59
-
60
89
  - name: semantic-release
61
- uses: codfish/semantic-release-action@upgrade
90
+ uses: docker://ghcr.io/codfish/semantic-release-action@sha256:e8640e0a620980247fd6e46f2f43f9a42d17181840518ea7fe983eeed65c154e
62
91
  id: semantic
63
92
  with:
64
93
  additional-packages: |
@@ -102,7 +131,27 @@ jobs:
102
131
  }
103
132
  ],
104
133
  [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
105
- '@semantic-release/release-notes-generator',
134
+ [
135
+ "@semantic-release/release-notes-generator",
136
+ {
137
+ "preset": "conventionalcommits",
138
+ "presetConfig": {
139
+ "types": [
140
+ { type: 'feat', section: 'Features', hidden: false },
141
+ { type: 'fix', section: 'Bug Fixes', hidden: false },
142
+ { type: 'perf', section: 'Performance Improvements', hidden: false },
143
+ { type: 'revert', section: 'Reverts', hidden: false },
144
+ { type: 'docs', section: 'Other Updates', hidden: false },
145
+ { type: 'style', section: 'Other Updates', hidden: false },
146
+ { type: 'chore', section: 'Other Updates', hidden: false },
147
+ { type: 'refactor', section: 'Other Updates', hidden: false },
148
+ { type: 'test', section: 'Other Updates', hidden: false },
149
+ { type: 'build', section: 'Other Updates', hidden: false },
150
+ { type: 'ci', section: 'Other Updates', hidden: false }
151
+ ]
152
+ }
153
+ }
154
+ ],
106
155
  '@semantic-release/npm',
107
156
  '@semantic-release/github'
108
157
  ]
@@ -111,7 +160,7 @@ jobs:
111
160
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
112
161
 
113
162
  - name: Dump semantic outputs
114
- if: steps.semantic-dry-run.outputs.new-release-published == 'true'
163
+ if: steps.semantic.outputs.new-release-published == 'true'
115
164
  run: |
116
165
  echo "Outputs:\n"
117
166
  echo "$SEMANTIC_OUTPUTS"
@@ -128,7 +177,7 @@ jobs:
128
177
  echo "RELEASE_GIT_TAG: $RELEASE_GIT_TAG"
129
178
  echo "RELEASE_NAME: $RELEASE_NAME"
130
179
  env:
131
- SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
180
+ SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic.outputs) }}
132
181
 
133
182
  - shell: bash
134
183
  if: steps.semantic.outputs.new-release-published == 'true'
@@ -158,21 +207,20 @@ jobs:
158
207
  env:
159
208
  VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
160
209
  MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
161
-
162
- - name: build docs
163
- run: |
164
- npm ci --no-save
165
- npm run build:docs
166
- rm ./docs/.gitignore
167
- env:
168
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
169
- # does not work...
170
- # Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128
171
- # Deployment failed! ❌
172
- # ::set-output name=deployment-status::failed
173
- #
174
- # - name: deploy documentation
175
- # uses: jamesives/github-pages-deploy-action@4.1.0
176
- # with:
177
- # branch: gh-pages
178
- # folder: docs
210
+ # - name: build docs
211
+ # run: |
212
+ # npm ci --no-save
213
+ # npm run build:docs
214
+ # rm ./docs/.gitignore
215
+ # env:
216
+ # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
217
+ # does not work...
218
+ # Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
219
+ # Deployment failed!
220
+ # ::set-output name=deployment-status::failed
221
+ #
222
+ # - name: deploy documentation
223
+ # uses: jamesives/github-pages-deploy-action@4.1.0
224
+ # with:
225
+ # branch: gh-pages
226
+ # folder: docs
@@ -0,0 +1,30 @@
1
+ name: Validate pr title
2
+
3
+ on:
4
+ pull_request:
5
+ types: [edited, opened, reopened]
6
+
7
+ jobs:
8
+ validate-pr-title:
9
+ runs-on: ubuntu-latest
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ steps:
16
+ - uses: actions/setup-node@v3
17
+ with:
18
+ node-version: 20
19
+
20
+ - name: install commitlint deps
21
+ run: npm install @commitlint/{cli,config-angular}
22
+
23
+ # todo: loosen restrictions set in @commitlint/config-angular to allow for more flexibility
24
+ - name: create commitlint config without yaml errors
25
+ run: |
26
+ echo "module.exports = {extends: ['@commitlint/config-angular']}" > commitlint.config.js
27
+
28
+ - name: Validate PR title
29
+ run: |
30
+ echo "${{ github.event.pull_request.title }}" | npx -y --no commitlint
package/Dockerfile CHANGED
@@ -10,7 +10,7 @@ RUN npm ci
10
10
  COPY ./src ./src
11
11
  COPY ./public ./public
12
12
 
13
- ENV RELEASE_VERSION=5.0.0
13
+ ENV RELEASE_VERSION=5.2.0
14
14
 
15
15
  RUN npm run build
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "0.0.0-PR-59--7322e3d",
3
+ "version": "0.0.0-PR-61--9cbe1a6",
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
  },
@@ -1,3 +1,3 @@
1
- appVersion: 5.0.0
1
+ appVersion: 5.2.0
2
2
  name: actions-playground
3
- version: 5.0.0
3
+ version: 5.2.0
package/test.txt CHANGED
@@ -1 +1,7 @@
1
- testing pr title squash merges with breaking change
1
+ testing dry run outputs
2
+
3
+ release notes test
4
+
5
+ release notes refactor test
6
+
7
+ test pr changes