@gov-cy/dsf-email-templates 2.1.1 → 2.1.9
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.
|
@@ -6,13 +6,19 @@ on:
|
|
|
6
6
|
- main
|
|
7
7
|
paths:
|
|
8
8
|
- '**'
|
|
9
|
+
|
|
10
|
+
# 🔸ADDED - enables npm auth via OIDC trusted publisher
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write # Required for OIDC
|
|
13
|
+
contents: write
|
|
14
|
+
|
|
9
15
|
jobs:
|
|
10
16
|
# Duplicated from `.github/workflows/version-sanity-checks.yml` could use https://github.blog/2022-02-10-using-reusable-workflows-github-actions ?
|
|
11
17
|
tag-and-publish-on-version-change:
|
|
12
18
|
name: Tag and publish on version change
|
|
13
19
|
runs-on: ubuntu-latest
|
|
14
20
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v4
|
|
16
22
|
- uses: EndBug/version-check@v2.1.0
|
|
17
23
|
with:
|
|
18
24
|
static-checking: localIsNew
|
|
@@ -51,13 +57,20 @@ jobs:
|
|
|
51
57
|
})
|
|
52
58
|
# Publish on npm
|
|
53
59
|
- name: Setup Node
|
|
54
|
-
uses: actions/setup-node@
|
|
60
|
+
uses: actions/setup-node@v4
|
|
55
61
|
with:
|
|
56
|
-
node-version: '
|
|
62
|
+
node-version: '20'
|
|
57
63
|
registry-url: 'https://registry.npmjs.org'
|
|
64
|
+
# 🔸ADDED - enables npm auth via OIDC trusted publisher
|
|
65
|
+
scope: '@gov-cy'
|
|
66
|
+
always-auth: true
|
|
67
|
+
- name: Test OIDC connection
|
|
68
|
+
run: npm publish --provenance --access public --dry-run
|
|
69
|
+
# Ensure npm 11.5.1 or later is installed
|
|
70
|
+
- name: Update npm
|
|
71
|
+
run: npm install -g npm@latest
|
|
58
72
|
- name: Install dependencies
|
|
59
|
-
run: npm
|
|
73
|
+
run: npm ci
|
|
60
74
|
- name: Publish package on NPM 📦
|
|
61
|
-
run: npm publish --access=public
|
|
62
|
-
|
|
63
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
75
|
+
run: npm publish --provenance --access=public
|
|
76
|
+
# With the change to use Trusted Publisher the NPM TOKEN is no longer needed
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.1.5] - 2025-10-14
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Updated package.json
|
|
12
|
+
|
|
13
|
+
## [v2.1.4] - 2025-10-14
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Renamed repo
|
|
17
|
+
|
|
18
|
+
## [v2.1.3] - 2025-10-14
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Removed scope from github action
|
|
22
|
+
|
|
23
|
+
## [v2.1.2] - 2025-10-13
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- Use NPM trusted publisher instead of npm tokens
|
|
27
|
+
|
|
8
28
|
## [v2.1.1] - 2025-10-09
|
|
9
29
|
|
|
10
30
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gov-cy/dsf-email-templates",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "This project can be used to produce html email templates to be used by DSF.",
|
|
5
5
|
"author": "DMRID - DSF Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
],
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/gov-cy/dsf-email-
|
|
23
|
+
"url": "https://github.com/gov-cy/dsf-email-templates.git"
|
|
24
24
|
},
|
|
25
|
-
"homepage": "https://github.com/gov-cy/dsf-email-
|
|
25
|
+
"homepage": "https://github.com/gov-cy/dsf-email-templates",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"nodemailer": "^7.0.9",
|
|
28
28
|
"nunjucks": "^3.2.4",
|