hof 22.0.2-ukmobilephone-validator-beta → 22.0.3-nodemailer-dependency-beta

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.
@@ -8,15 +8,15 @@ on:
8
8
  - completed
9
9
  jobs:
10
10
  auto-publish:
11
- runs-on: ubuntu-latest
11
+ runs-on: ubuntu-22.04
12
12
  if: startsWith(github.ref, 'refs/heads/master')
13
13
  steps:
14
- - uses: actions/checkout@v2.2.0
14
+ - uses: actions/checkout@v4
15
15
  with:
16
16
  fetch-depth: 0
17
- - uses: actions/setup-node@v1
17
+ - uses: actions/setup-node@v4
18
18
  with:
19
- node-version: 14
19
+ node-version: 20
20
20
  registry-url: https://registry.npmjs.org/
21
21
  - name: 'Get Previous tag'
22
22
  id: previoustag
@@ -4,14 +4,14 @@ name: Automate_Tag
4
4
  on: [push]
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-latest
7
+ runs-on: ubuntu-22.04
8
8
  strategy:
9
9
  matrix:
10
- node-version: [14.x]
10
+ node-version: [20.x]
11
11
  redis-version: [4, 5, 6]
12
12
  steps:
13
- - uses: actions/checkout@v2.2.0
14
- - uses: actions/setup-node@v1
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v4
15
15
  with:
16
16
  node-version: ${{ matrix.node-version }}
17
17
  - name: Start Redis
@@ -25,16 +25,16 @@ jobs:
25
25
 
26
26
  auto-tag-patch:
27
27
  needs: test
28
- runs-on: ubuntu-latest
28
+ runs-on: ubuntu-22.04
29
29
  if: |
30
30
  startsWith(github.ref, 'refs/heads/master') &&
31
31
  !contains(github.event.head_commit.message, '[MAJOR]') &&
32
32
  !contains(github.event.head_commit.message, '[MINOR]')
33
33
  steps:
34
- - uses: actions/checkout@v2.2.0
35
- - uses: actions/setup-node@v1
34
+ - uses: actions/checkout@v4
35
+ - uses: actions/setup-node@v4
36
36
  with:
37
- node-version: 14
37
+ node-version: 20
38
38
  registry-url: https://registry.npmjs.org/
39
39
  - run: |
40
40
  git config --local user.email "$(git log --format='%ae' HEAD^!)"
@@ -43,16 +43,16 @@ jobs:
43
43
 
44
44
  auto-tag-minor:
45
45
  needs: test
46
- runs-on: ubuntu-latest
46
+ runs-on: ubuntu-22.04
47
47
  if: |
48
48
  startsWith(github.ref, 'refs/heads/master') &&
49
49
  !contains(github.event.head_commit.message, '[MAJOR]') &&
50
50
  contains(github.event.head_commit.message, '[MINOR]')
51
51
  steps:
52
- - uses: actions/checkout@v2.2.0
53
- - uses: actions/setup-node@v1
52
+ - uses: actions/checkout@v4
53
+ - uses: actions/setup-node@v4
54
54
  with:
55
- node-version: 14
55
+ node-version: 20
56
56
  registry-url: https://registry.npmjs.org/
57
57
  - run: |
58
58
  git config --local user.email "$(git log --format='%ae' HEAD^!)"
@@ -61,16 +61,16 @@ jobs:
61
61
 
62
62
  auto-tag-major:
63
63
  needs: test
64
- runs-on: ubuntu-latest
64
+ runs-on: ubuntu-22.04
65
65
  if: |
66
66
  startsWith(github.ref, 'refs/heads/master') &&
67
67
  contains(github.event.head_commit.message, '[MAJOR]') &&
68
68
  !contains(github.event.head_commit.message, '[MINOR]')
69
69
  steps:
70
- - uses: actions/checkout@v2.2.0
71
- - uses: actions/setup-node@v1
70
+ - uses: actions/checkout@v4
71
+ - uses: actions/setup-node@v4
72
72
  with:
73
- node-version: 14
73
+ node-version: 20
74
74
  registry-url: https://registry.npmjs.org/
75
75
  - run: |
76
76
  git config --local user.email "$(git log --format='%ae' HEAD^!)"
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const smtp = require('nodemailer-smtp-transport');
3
+ const smtp = require('nodemailer');
4
4
 
5
5
  module.exports = options => {
6
6
  if (!options.host) {
@@ -109,7 +109,7 @@ module.exports = Validators = {
109
109
  },
110
110
 
111
111
  ukmobilephone(value) {
112
- return value === '' || Validators.regex(value, /^(?:\+447|07)\d{9}$/);
112
+ return value === '' || Validators.regex(value, /^(07)\d{9}$/);
113
113
  },
114
114
 
115
115
  date(value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "22.0.2-ukmobilephone-validator-beta",
4
+ "version": "22.0.3-nodemailer-dependency-beta",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -78,7 +78,6 @@
78
78
  "mustache": "^4.2.0",
79
79
  "nodemailer": "^6.6.3",
80
80
  "nodemailer-ses-transport": "^1.5.1",
81
- "nodemailer-smtp-transport": "^2.7.4",
82
81
  "nodemailer-stub-transport": "^1.1.0",
83
82
  "notifications-node-client": "^8.2.0",
84
83
  "redis": "^3.1.2",
@@ -12,5 +12,5 @@
12
12
  - [ ] I have created a JIRA number for my commit
13
13
  - [ ] I have followed the chris beams method for my commit https://cbea.ms/git-commit/
14
14
  here is an [example commit](https://github.com/UKHomeOfficeForms/hof/commit/810959f391187c7c4af6db262bcd143b50093a6e)
15
- - [ ] Ensure drone builds are green especially tests
15
+ - [ ] Ensure workflow jobs are passing especially tests
16
16
  - [ ] I will squash the commits before merging