Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/create-release-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:

- run: node --run scripts:release-post -- "$VERSION"
working-directory: apps/site
id: release-post
env:
VERSION: ${{ inputs.version }}

Expand All @@ -54,4 +55,5 @@ jobs:
commit-message: 'feat(blog): create post for ${{ inputs.version }}'
labels: fast-track
title: 'feat(blog): create post for ${{ inputs.version }}'
assignees: ${{ steps.release-post.outputs.author }}
draft: true
12 changes: 10 additions & 2 deletions apps/site/scripts/release-post/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

'use strict';

import { existsSync, readFileSync } from 'node:fs';
import { existsSync, readFileSync, appendFileSync } from 'node:fs';
import { writeFile } from 'node:fs/promises';
import { resolve } from 'node:path';
import { parseArgs } from 'node:util';
Expand Down Expand Up @@ -125,7 +125,15 @@ const fetchAuthor = version => {
return fetchChangelog(version)
.then(section => findAuthorLogin(version, section))
.then(author => request({ url: URLS.GITHUB_PROFILE(author), json: true }))
.then(githubRes => githubRes.name);
.then(({ name, login }) => {
if (process.env.GITHUB_OUTPUT) {
// If we are running in a GitHub runner, we need to store the username
// so that the PR can be assigned to them
appendFileSync(process.env.GITHUB_OUTPUT, `author=${login}\n`);
}

return name;
});
};

const fetchChangelog = version => {
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@node-core/website-i18n",
"version": "1.1.13",
"version": "1.1.14",
"type": "module",
"exports": {
"./*": [
Expand Down
20 changes: 7 additions & 13 deletions packages/i18n/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"guides": "Guides",
"learn": "Apprendre",
"security": "Sécurité",
"certification": "Certification",
"certification": "Cours",
"blog": "Blog",
"contribute": "Contribuer"
}
Expand Down Expand Up @@ -65,7 +65,8 @@
"http": {
"links": {
"http": "HTTP",
"anatomyOfAnHttpTransaction": "Anatomie d'une transaction HTTP"
"anatomyOfAnHttpTransaction": "Anatomie d'une transaction HTTP",
"enterpriseNetworkConfiguration": "Configuration du réseau d'entreprise"
}
},
"manipulatingFiles": {
Expand Down Expand Up @@ -214,7 +215,8 @@
"releaseDate": "Publié le",
"lastUpdated": "Dernière mise à jour",
"vulnerabilities": "Vulnérabilités",
"details": "Détails"
"details": "Détails",
"hideNonLts": "Masquer les versions non LTS"
},
"minorReleasesTable": {
"version": "Version",
Expand All @@ -236,10 +238,6 @@
"npmVersion": "npm version",
"v8Version": "Version V8"
},
"pagination": {
"next": "Suivant",
"previous": "Précédent"
},
"common": {
"alertBox": {
"info": "Information",
Expand All @@ -249,17 +247,13 @@
"breadcrumbs": {
"navigateToHome": "Naviguer à l'accueil"
},
"crossLink": {
"previous": "Préc.",
"next": "Suiv."
},
"codebox": {
"copy": "Copier dans le Presse-papier",
"copied": "Copié dans le presse-papiers!"
},
"pagination": {
"prev": "Précédent",
"prevAriaLabel": "Page précédente",
"previous": "Précédent",
"previousAriaLabel": "Page précédente",
"next": "Suivant",
"nextAriaLabel": "Page suivante",
"defaultLabel": "Pagination",
Expand Down
3 changes: 2 additions & 1 deletion packages/i18n/src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"http": {
"links": {
"http": "HTTP",
"anatomyOfAnHttpTransaction": "HTTPトランザクションの構成"
"anatomyOfAnHttpTransaction": "HTTPトランザクションの構成",
"enterpriseNetworkConfiguration": "エンタープライズ用のネットワーク設定"
}
},
"manipulatingFiles": {
Expand Down
5 changes: 3 additions & 2 deletions packages/i18n/src/locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"http": {
"links": {
"http": "HTTP",
"anatomyOfAnHttpTransaction": "Anatomia de uma Transação HTTP"
"anatomyOfAnHttpTransaction": "Anatomia de uma Transação HTTP",
"enterpriseNetworkConfiguration": "Configuração de Rede para Ambientes Enterprise"
}
},
"manipulatingFiles": {
Expand Down Expand Up @@ -151,7 +152,7 @@
"getInvolved": {
"links": {
"getInvolved": "Participe",
"collabSummit": "Cúpula de Colaboração",
"collabSummit": "Encontro de Colaboradores",
"upcomingEvents": "Próximos Eventos",
"contribute": "Contribuir para o Node.js",
"codeOfConduct": "Código de Conduta"
Expand Down
3 changes: 2 additions & 1 deletion packages/i18n/src/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"http": {
"links": {
"http": "HTTP",
"anatomyOfAnHttpTransaction": "Анатомія HTTP-транзакції"
"anatomyOfAnHttpTransaction": "Анатомія HTTP-транзакції",
"enterpriseNetworkConfiguration": "Конфігурація підприємницької мережі"
}
},
"manipulatingFiles": {
Expand Down
Loading