From 8d95fefc9133d9566d9b887cc6fd9182fc16417d Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 7 Nov 2023 11:17:51 +0000 Subject: [PATCH 1/3] feat(config): upload package tarball --- .gitignore | 1 + config.js | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4db778f..0a8dfb5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /coverage/ /tap.xml /dist/ +/*.tgz diff --git a/config.js b/config.js index 4c3bf47..5980879 100644 --- a/config.js +++ b/config.js @@ -10,7 +10,12 @@ module.exports = { prepareCmd: 'prettier -w CHANGELOG.md', }, ], - '@semantic-release/npm', + [ + '@semantic-release/npm', + { + tarballDir: 'dist', + }, + ], [ '@semantic-release/git', { @@ -28,6 +33,15 @@ module.exports = { path: 'icon.svg', type: 'image', }, + { + // eslint-disable-next-line no-template-curly-in-string + path: 'dist/${env.npm_package_name.replace(/@(.+)\\/(.+)/, \'$1-$2\')}-${nextRelease.version}.tgz', + filepath: '/package.tar.gz', + type: 'package', + label: 'package.tar.gz', + target: 'generic_package', + status: 'hidden', + }, ], }, ], -- GitLab From 2735c1ed62eb49bcb73f8d6823f17ef9668023e9 Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 7 Nov 2023 11:18:24 +0000 Subject: [PATCH 2/3] fix(config): disable generic package upload `gitlab.arm.com` does not have the package registry turned on, yet. --- config.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/config.js b/config.js index 5980879..ee56a96 100644 --- a/config.js +++ b/config.js @@ -38,9 +38,6 @@ module.exports = { path: 'dist/${env.npm_package_name.replace(/@(.+)\\/(.+)/, \'$1-$2\')}-${nextRelease.version}.tgz', filepath: '/package.tar.gz', type: 'package', - label: 'package.tar.gz', - target: 'generic_package', - status: 'hidden', }, ], }, -- GitLab From 2f83d8b900a3c105f105598c7c3f476926de306a Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 7 Nov 2023 11:20:13 +0000 Subject: [PATCH 3/3] fix(config): remove templating of GitLab asset path Templating is not supported by `@semantic-release/gitlab`, yet. --- config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config.js b/config.js index ee56a96..a3ef5e2 100644 --- a/config.js +++ b/config.js @@ -34,8 +34,7 @@ module.exports = { type: 'image', }, { - // eslint-disable-next-line no-template-curly-in-string - path: 'dist/${env.npm_package_name.replace(/@(.+)\\/(.+)/, \'$1-$2\')}-${nextRelease.version}.tgz', + path: 'dist/*.tgz', filepath: '/package.tar.gz', type: 'package', }, -- GitLab