@codfish/actions-playground 5.0.0 → 5.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.
@@ -27,6 +27,15 @@ jobs:
27
27
  with:
28
28
  node-version: 18.x
29
29
 
30
+ - name: semantic release dry run
31
+ uses: codfish/semantic-release-action@upgrade
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
+
30
39
  - shell: bash
31
40
  run: |
32
41
  echo "DOCKER_TAGS=main-${GITHUB_SHA},main,latest" >> $GITHUB_ENV;
@@ -48,30 +57,11 @@ jobs:
48
57
  - name: docker build
49
58
  run: docker build -t codfish/actions-playground:latest .
50
59
 
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
- branches: |
57
- [
58
- 'main',
59
- 'next',
60
- 'next-major',
61
- {name: 'beta', prerelease: true},
62
- {name: 'alpha', prerelease: true}
63
- ]
64
- env:
65
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67
-
68
60
  - name: semantic-release
69
- uses: codfish/semantic-release-action@main
61
+ uses: codfish/semantic-release-action@upgrade
70
62
  id: semantic
71
63
  with:
72
- branches: |
73
- ['main', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
74
- additional_packages: |
64
+ additional-packages: |
75
65
  ['@google/semantic-release-replace-plugin', '@semantic-release/git']
76
66
  plugins: |
77
67
  [
@@ -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": "5.0.0",
3
+ "version": "5.2.0",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -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