0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

chore: fix automated release notes on publish (#3568)

* chore: fix automated release notes on publish

* chore: fix automated release notes on publish
This commit is contained in:
Juan Picado 2023-01-19 22:53:05 +01:00 committed by GitHub
parent d1519228a3
commit 50a20e922b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 159 additions and 281 deletions

View file

@ -21,10 +21,10 @@ jobs:
node-version: ${{ matrix.node_version }}
- name: Install
run: yarn install --immutable
# - name: Format
# run: yarn format:check
- name: Format
run: yarn format:check
- name: Build
run: yarn code:build
run: yarn build
- name: Lint
run: yarn lint
- name: Test

View file

@ -17,7 +17,7 @@ jobs:
- name: Install
run: yarn install
- name: Build
run: yarn code:build
run: yarn build
- name: Types
run: yarn code:types
- name: Publish
@ -25,8 +25,7 @@ jobs:
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
REGISTRY_URL: registry.npmjs.org
# FIXME: there is an issue where all the changelog is copied to the release notes (all versions)
# - name: Create release notes
# run: sh scripts/github-release.sh
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release notes
run: sh scripts/github-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

144
.pnp.cjs generated
View file

@ -58,7 +58,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@babel/runtime", "npm:7.20.7"],\
["@commitlint/cli", "npm:17.3.0"],\
["@commitlint/config-conventional", "npm:12.1.4"],\
["@octokit/rest", "npm:18.12.0"],\
["@octokit/rest", "npm:19.0.5"],\
["@trivago/prettier-plugin-sort-imports", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:4.0.0"],\
["@types/async", "npm:3.2.13"],\
["@types/express", "npm:4.17.14"],\
@ -4055,25 +4055,25 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@octokit/auth-token", [\
["npm:2.5.0", {\
"packageLocation": "./.yarn/cache/@octokit-auth-token-npm-2.5.0-a1c6ffb640-45949296c0.zip/node_modules/@octokit/auth-token/",\
["npm:3.0.2", {\
"packageLocation": "./.yarn/cache/@octokit-auth-token-npm-3.0.2-2c2a6dcca5-c7204770a6.zip/node_modules/@octokit/auth-token/",\
"packageDependencies": [\
["@octokit/auth-token", "npm:2.5.0"],\
["@octokit/types", "npm:6.41.0"]\
["@octokit/auth-token", "npm:3.0.2"],\
["@octokit/types", "npm:8.1.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["@octokit/core", [\
["npm:3.6.0", {\
"packageLocation": "./.yarn/cache/@octokit-core-npm-3.6.0-1273c50268-f811601290.zip/node_modules/@octokit/core/",\
["npm:4.1.0", {\
"packageLocation": "./.yarn/cache/@octokit-core-npm-4.1.0-53c1d3e6df-4e53e02ff3.zip/node_modules/@octokit/core/",\
"packageDependencies": [\
["@octokit/core", "npm:3.6.0"],\
["@octokit/auth-token", "npm:2.5.0"],\
["@octokit/graphql", "npm:4.8.0"],\
["@octokit/request", "npm:5.6.3"],\
["@octokit/request-error", "npm:2.1.0"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/core", "npm:4.1.0"],\
["@octokit/auth-token", "npm:3.0.2"],\
["@octokit/graphql", "npm:5.0.4"],\
["@octokit/request", "npm:6.2.2"],\
["@octokit/request-error", "npm:3.0.2"],\
["@octokit/types", "npm:8.1.1"],\
["before-after-hook", "npm:2.2.3"],\
["universal-user-agent", "npm:6.0.0"]\
],\
@ -4081,11 +4081,11 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@octokit/endpoint", [\
["npm:6.0.12", {\
"packageLocation": "./.yarn/cache/@octokit-endpoint-npm-6.0.12-d467db27fd-b48b29940a.zip/node_modules/@octokit/endpoint/",\
["npm:7.0.3", {\
"packageLocation": "./.yarn/cache/@octokit-endpoint-npm-7.0.3-cabcb716ae-c36b157706.zip/node_modules/@octokit/endpoint/",\
"packageDependencies": [\
["@octokit/endpoint", "npm:6.0.12"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/endpoint", "npm:7.0.3"],\
["@octokit/types", "npm:8.1.1"],\
["is-plain-object", "npm:5.0.0"],\
["universal-user-agent", "npm:6.0.0"]\
],\
@ -4093,40 +4093,40 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@octokit/graphql", [\
["npm:4.8.0", {\
"packageLocation": "./.yarn/cache/@octokit-graphql-npm-4.8.0-83d118b4da-f68afe53f6.zip/node_modules/@octokit/graphql/",\
["npm:5.0.4", {\
"packageLocation": "./.yarn/cache/@octokit-graphql-npm-5.0.4-dd4f7f9ed4-8cf65cf7e6.zip/node_modules/@octokit/graphql/",\
"packageDependencies": [\
["@octokit/graphql", "npm:4.8.0"],\
["@octokit/request", "npm:5.6.3"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/graphql", "npm:5.0.4"],\
["@octokit/request", "npm:6.2.2"],\
["@octokit/types", "npm:8.1.1"],\
["universal-user-agent", "npm:6.0.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@octokit/openapi-types", [\
["npm:12.11.0", {\
"packageLocation": "./.yarn/cache/@octokit-openapi-types-npm-12.11.0-cc40f04bc8-8a7d4bd628.zip/node_modules/@octokit/openapi-types/",\
["npm:14.0.0", {\
"packageLocation": "./.yarn/cache/@octokit-openapi-types-npm-14.0.0-5d05da4dc7-0a1f8f3be9.zip/node_modules/@octokit/openapi-types/",\
"packageDependencies": [\
["@octokit/openapi-types", "npm:12.11.0"]\
["@octokit/openapi-types", "npm:14.0.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@octokit/plugin-paginate-rest", [\
["npm:2.21.3", {\
"packageLocation": "./.yarn/cache/@octokit-plugin-paginate-rest-npm-2.21.3-82d2ad1bba-acf31de2ba.zip/node_modules/@octokit/plugin-paginate-rest/",\
["npm:5.0.1", {\
"packageLocation": "./.yarn/cache/@octokit-plugin-paginate-rest-npm-5.0.1-1f7b1655c3-cfded297d9.zip/node_modules/@octokit/plugin-paginate-rest/",\
"packageDependencies": [\
["@octokit/plugin-paginate-rest", "npm:2.21.3"]\
["@octokit/plugin-paginate-rest", "npm:5.0.1"]\
],\
"linkType": "SOFT"\
}],\
["virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:2.21.3", {\
"packageLocation": "./.yarn/__virtual__/@octokit-plugin-paginate-rest-virtual-c515f986f9/0/cache/@octokit-plugin-paginate-rest-npm-2.21.3-82d2ad1bba-acf31de2ba.zip/node_modules/@octokit/plugin-paginate-rest/",\
["virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:5.0.1", {\
"packageLocation": "./.yarn/__virtual__/@octokit-plugin-paginate-rest-virtual-b801a13f88/0/cache/@octokit-plugin-paginate-rest-npm-5.0.1-1f7b1655c3-cfded297d9.zip/node_modules/@octokit/plugin-paginate-rest/",\
"packageDependencies": [\
["@octokit/plugin-paginate-rest", "virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:2.21.3"],\
["@octokit/core", "npm:3.6.0"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/plugin-paginate-rest", "virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:5.0.1"],\
["@octokit/core", "npm:4.1.0"],\
["@octokit/types", "npm:8.1.1"],\
["@types/octokit__core", null]\
],\
"packagePeers": [\
@ -4144,11 +4144,11 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
],\
"linkType": "SOFT"\
}],\
["virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:1.0.4", {\
"packageLocation": "./.yarn/__virtual__/@octokit-plugin-request-log-virtual-e50d6a2304/0/cache/@octokit-plugin-request-log-npm-1.0.4-9ab5a2f888-2086db0005.zip/node_modules/@octokit/plugin-request-log/",\
["virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:1.0.4", {\
"packageLocation": "./.yarn/__virtual__/@octokit-plugin-request-log-virtual-6845237c14/0/cache/@octokit-plugin-request-log-npm-1.0.4-9ab5a2f888-2086db0005.zip/node_modules/@octokit/plugin-request-log/",\
"packageDependencies": [\
["@octokit/plugin-request-log", "virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:1.0.4"],\
["@octokit/core", "npm:3.6.0"],\
["@octokit/plugin-request-log", "virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:1.0.4"],\
["@octokit/core", "npm:4.1.0"],\
["@types/octokit__core", null]\
],\
"packagePeers": [\
@ -4159,19 +4159,19 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@octokit/plugin-rest-endpoint-methods", [\
["npm:5.16.2", {\
"packageLocation": "./.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-5.16.2-f54316c392-30fcc50c33.zip/node_modules/@octokit/plugin-rest-endpoint-methods/",\
["npm:6.7.0", {\
"packageLocation": "./.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-6.7.0-8434cbe757-513c6c0717.zip/node_modules/@octokit/plugin-rest-endpoint-methods/",\
"packageDependencies": [\
["@octokit/plugin-rest-endpoint-methods", "npm:5.16.2"]\
["@octokit/plugin-rest-endpoint-methods", "npm:6.7.0"]\
],\
"linkType": "SOFT"\
}],\
["virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:5.16.2", {\
"packageLocation": "./.yarn/__virtual__/@octokit-plugin-rest-endpoint-methods-virtual-3948113dea/0/cache/@octokit-plugin-rest-endpoint-methods-npm-5.16.2-f54316c392-30fcc50c33.zip/node_modules/@octokit/plugin-rest-endpoint-methods/",\
["virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:6.7.0", {\
"packageLocation": "./.yarn/__virtual__/@octokit-plugin-rest-endpoint-methods-virtual-496e90841c/0/cache/@octokit-plugin-rest-endpoint-methods-npm-6.7.0-8434cbe757-513c6c0717.zip/node_modules/@octokit/plugin-rest-endpoint-methods/",\
"packageDependencies": [\
["@octokit/plugin-rest-endpoint-methods", "virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:5.16.2"],\
["@octokit/core", "npm:3.6.0"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/plugin-rest-endpoint-methods", "virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:6.7.0"],\
["@octokit/core", "npm:4.1.0"],\
["@octokit/types", "npm:8.1.1"],\
["@types/octokit__core", null],\
["deprecation", "npm:2.3.1"]\
],\
@ -4183,26 +4183,26 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@octokit/request", [\
["npm:5.6.3", {\
"packageLocation": "./.yarn/cache/@octokit-request-npm-5.6.3-25a5f5382d-c0b4542eb4.zip/node_modules/@octokit/request/",\
["npm:6.2.2", {\
"packageLocation": "./.yarn/cache/@octokit-request-npm-6.2.2-b443394ecf-adbeb38807.zip/node_modules/@octokit/request/",\
"packageDependencies": [\
["@octokit/request", "npm:5.6.3"],\
["@octokit/endpoint", "npm:6.0.12"],\
["@octokit/request-error", "npm:2.1.0"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/request", "npm:6.2.2"],\
["@octokit/endpoint", "npm:7.0.3"],\
["@octokit/request-error", "npm:3.0.2"],\
["@octokit/types", "npm:8.1.1"],\
["is-plain-object", "npm:5.0.0"],\
["node-fetch", "virtual:25a5f5382d53dbf298bf7a1191760bc2e0a523a619eeb0e667b99a8649e8ad183f9e2e0b45f6fb831b92f4078b61622aa567cf79565f6aa5af9597e3c84864f6#npm:2.6.7"],\
["node-fetch", "virtual:b443394ecf5ceaa738e36796abd12e5bf5e9d0b3cf956637850586d2eae10f1f2db28ba31c0d8cb3609fa0653132e91468174bf992b9bed74bdeb446cbf6ceb1#npm:2.6.7"],\
["universal-user-agent", "npm:6.0.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@octokit/request-error", [\
["npm:2.1.0", {\
"packageLocation": "./.yarn/cache/@octokit-request-error-npm-2.1.0-51ac624306-baec2b5700.zip/node_modules/@octokit/request-error/",\
["npm:3.0.2", {\
"packageLocation": "./.yarn/cache/@octokit-request-error-npm-3.0.2-ad6a6ba74d-41549554ce.zip/node_modules/@octokit/request-error/",\
"packageDependencies": [\
["@octokit/request-error", "npm:2.1.0"],\
["@octokit/types", "npm:6.41.0"],\
["@octokit/request-error", "npm:3.0.2"],\
["@octokit/types", "npm:8.1.1"],\
["deprecation", "npm:2.3.1"],\
["once", "npm:1.4.0"]\
],\
@ -4210,24 +4210,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
}]\
]],\
["@octokit/rest", [\
["npm:18.12.0", {\
"packageLocation": "./.yarn/cache/@octokit-rest-npm-18.12.0-f250ac8e5e-c18bd6676a.zip/node_modules/@octokit/rest/",\
["npm:19.0.5", {\
"packageLocation": "./.yarn/cache/@octokit-rest-npm-19.0.5-b25c99ac14-ed4c36859a.zip/node_modules/@octokit/rest/",\
"packageDependencies": [\
["@octokit/rest", "npm:18.12.0"],\
["@octokit/core", "npm:3.6.0"],\
["@octokit/plugin-paginate-rest", "virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:2.21.3"],\
["@octokit/plugin-request-log", "virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:1.0.4"],\
["@octokit/plugin-rest-endpoint-methods", "virtual:f250ac8e5eb682f2f60768f4330fc728a36405b667dc5acc56c520d0ff4519a3db937536614af90173f6af26d8665c4fe9f532c66765a577f6ea1f6b70d54bc1#npm:5.16.2"]\
["@octokit/rest", "npm:19.0.5"],\
["@octokit/core", "npm:4.1.0"],\
["@octokit/plugin-paginate-rest", "virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:5.0.1"],\
["@octokit/plugin-request-log", "virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:1.0.4"],\
["@octokit/plugin-rest-endpoint-methods", "virtual:b25c99ac140fba39ccc64cd0345a65446a6320b42007542ef40ff40f6462a113a63b046652afbcc947865b01fb41500f65b626585ededd6c16bf3acebf970297#npm:6.7.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@octokit/types", [\
["npm:6.41.0", {\
"packageLocation": "./.yarn/cache/@octokit-types-npm-6.41.0-5788f32962-fd6f75e0b1.zip/node_modules/@octokit/types/",\
["npm:8.1.1", {\
"packageLocation": "./.yarn/cache/@octokit-types-npm-8.1.1-3fa1d862e8-4a51ce3d7f.zip/node_modules/@octokit/types/",\
"packageDependencies": [\
["@octokit/types", "npm:6.41.0"],\
["@octokit/openapi-types", "npm:12.11.0"]\
["@octokit/types", "npm:8.1.1"],\
["@octokit/openapi-types", "npm:14.0.0"]\
],\
"linkType": "HARD"\
}]\
@ -11307,10 +11307,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
],\
"linkType": "SOFT"\
}],\
["virtual:25a5f5382d53dbf298bf7a1191760bc2e0a523a619eeb0e667b99a8649e8ad183f9e2e0b45f6fb831b92f4078b61622aa567cf79565f6aa5af9597e3c84864f6#npm:2.6.7", {\
"packageLocation": "./.yarn/__virtual__/node-fetch-virtual-d3846f8e12/0/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip/node_modules/node-fetch/",\
["virtual:b443394ecf5ceaa738e36796abd12e5bf5e9d0b3cf956637850586d2eae10f1f2db28ba31c0d8cb3609fa0653132e91468174bf992b9bed74bdeb446cbf6ceb1#npm:2.6.7", {\
"packageLocation": "./.yarn/__virtual__/node-fetch-virtual-422437e356/0/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip/node_modules/node-fetch/",\
"packageDependencies": [\
["node-fetch", "virtual:25a5f5382d53dbf298bf7a1191760bc2e0a523a619eeb0e667b99a8649e8ad183f9e2e0b45f6fb831b92f4078b61622aa567cf79565f6aa5af9597e3c84864f6#npm:2.6.7"],\
["node-fetch", "virtual:b443394ecf5ceaa738e36796abd12e5bf5e9d0b3cf956637850586d2eae10f1f2db28ba31c0d8cb3609fa0653132e91468174bf992b9bed74bdeb446cbf6ceb1#npm:2.6.7"],\
["@types/encoding", null],\
["encoding", null],\
["whatwg-url", "npm:5.0.0"]\
@ -14019,7 +14019,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@babel/runtime", "npm:7.20.7"],\
["@commitlint/cli", "npm:17.3.0"],\
["@commitlint/config-conventional", "npm:12.1.4"],\
["@octokit/rest", "npm:18.12.0"],\
["@octokit/rest", "npm:19.0.5"],\
["@trivago/prettier-plugin-sort-imports", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:4.0.0"],\
["@types/async", "npm:3.2.13"],\
["@types/express", "npm:4.17.14"],\
@ -14123,7 +14123,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["body-parser", "npm:1.20.1"],\
["express", "npm:4.18.2"],\
["https-proxy-agent", "npm:5.0.1"],\
["node-fetch", "virtual:25a5f5382d53dbf298bf7a1191760bc2e0a523a619eeb0e667b99a8649e8ad183f9e2e0b45f6fb831b92f4078b61622aa567cf79565f6aa5af9597e3c84864f6#npm:2.6.7"]\
["node-fetch", "virtual:b443394ecf5ceaa738e36796abd12e5bf5e9d0b3cf956637850586d2eae10f1f2db28ba31c0d8cb3609fa0653132e91468174bf992b9bed74bdeb446cbf6ceb1#npm:2.6.7"]\
],\
"linkType": "HARD"\
}]\

77
.vscode/launch.json vendored
View file

@ -1,7 +1,4 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
@ -12,78 +9,6 @@
"<node_internals>/**"
],
"type": "node"
},
"processId": "${command:PickProcess}",
{
"type": "node",
"request": "launch",
"name": "CLI Babel Registry",
"stopOnEntry": false,
"program": "${workspaceFolder}/debug/bootstrap.js",
"args": ["-l", "0.0.0.0:4873"],
"env": {
"BABEL_ENV": "registry"
},
"preLaunchTask": "npm: build:webui",
"console": "integratedTerminal"
},
{
"name": "Unit Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js",
"stopOnEntry": false,
"args": [
"--debug=true" ],
"cwd": "${workspaceRoot}",
"preLaunchTask": "pre-test",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "test",
"TZ": "UTC"
},
"console": "integratedTerminal"
},
{
"name": "Functional Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/jest",
"stopOnEntry": false,
"args": [
"--config",
"./test/jest.config.functional.js",
"--testPathPattern",
"./test/functional/index*",
"--debug=false",
"--verbose",
"--useStderr",
"--detectOpenHandles"],
"cwd": "${workspaceRoot}",
"env": {
"BABEL_ENV": "testOldEnv",
"VERDACCIO_DEBUG": "true",
"VERDACCIO_DEBUG_INJECT": "true",
"NODE_DEBUG": "TO_DEBUG_REQUEST_REMOVE_THIS_request"
},
"preLaunchTask": "pre-test",
"console": "integratedTerminal",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
},
{
"type": "node",
"request": "launch",
"name": "Verdaccio Compiled",
"preLaunchTask": "npm: code:build",
"program": "${workspaceRoot}/bin/verdaccio",
"args": ["-l", "0.0.0.0:4873"],
"console": "integratedTerminal"
}
}
]
}

24
.vscode/tasks.json vendored
View file

@ -1,24 +0,0 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build:webui",
"problemMatcher": []
},
{
"type": "npm",
"script": "code:build",
"problemMatcher": []
},
{
"label": "pre-test",
"dependsOn": [
"npm: code:build",
"npm: test:clean"
]
}
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -2,8 +2,6 @@ defaultSemverRangePrefix: ""
enableGlobalCache: false
# nodeLinker: node-modules
httpRetry: 10
httpTimeout: 100000

View file

@ -85,7 +85,7 @@
"@babel/runtime": "7.20.7",
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "12.1.4",
"@octokit/rest": "18.12.0",
"@octokit/rest": "19.0.5",
"@trivago/prettier-plugin-sort-imports": "4.0.0",
"@types/async": "3.2.13",
"@types/express": "4.17.14",
@ -170,7 +170,7 @@
"start:brk": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect-brk",
"start:debug": "yarn node debug/bootstrap.js",
"start:run-server": "yarn node debug/bootstrap-runserver.js",
"code:build": "yarn babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps inline",
"build": "yarn babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps inline",
"code:types": "tsc --emitDeclarationOnly -p tsconfig.json",
"code:docker-build": "yarn babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\"",
"docker": "docker build -t verdaccio/verdaccio:local . --no-cache",

View file

@ -1,4 +1,4 @@
#!/bin/bash
# Get the last tag from GitHub
# get the last published tag
lastTag=$(git describe --tags $(git rev-list --tags --max-count=1))
yarn ts-node scripts/trigger-release.ts $lastTag $changelog
yarn ts-node scripts/trigger-release.ts $lastTag

View file

@ -1,14 +0,0 @@
#!/bin/bash
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work. https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb \
&& yarn run test:all

View file

@ -1,38 +1,33 @@
/* eslint-disable no-console */
import { Octokit } from '@octokit/rest';
import { execSync } from 'child_process';
const [, , /* node */ /* file */ tag] = process.argv;
// eslint-disable-next-line no-console
console.log('tag', tag);
const octokit = new Octokit({
auth: `token ${process.env.GITHUB_TOKEN}`,
});
// @ts-ignore
const [repoOwner, repoName] = process.env.GITHUB_REPOSITORY.split('/');
console.log('repoName', repoName);
console.log('repoOwner', repoOwner);
(async () => {
try {
// retrieve the latest changes from CHANGELOG.md
const changelog = execSync(
`git show $GITHUB_SHA --unified=0 CHANGELOG.md | tail +12 | sed -e 's/^\+//'`
`git show -1 --unified=0 CHANGELOG.md | tail +12 | sed -e 's/^\+//'`
);
// eslint-disable-next-line no-console
console.log('changelog', changelog.toString());
await octokit.repos.createRelease({
owner: repoOwner,
repo: repoName,
owner: 'verdaccio',
repo: 'verdaccio',
tag_name: tag,
body: changelog.toString(),
draft: false,
draft: true,
discussion_category_name: 'Announcements',
});
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
console.error(`release script has failed, details: ${err}`);
process.exit(1);
}
})();

View file

@ -1,6 +1,5 @@
import bodyParser from 'body-parser';
import express from 'express';
import _ from 'lodash';
import { Config } from '@verdaccio/types';

View file

@ -206,7 +206,7 @@ The debug display request headers and other handy information about what is happ
The functional tests aim to run only **cli endpoint** and **web point** using real request to an existing and compiled running Verdaccio server.
> Be aware if you change something in the `{root}/src` source code, you must run `yarn code:build` before to be able to see your changes because functional tests use the transpiled code.
> Be aware if you change something in the `{root}/src` source code, you must run `yarn build` before to be able to see your changes because functional tests use the transpiled code.
All tests must be included in the `test/functional/index.spec.ts` file, which bootstraps the whole process. There is only one spec file and **must be only one**.

130
yarn.lock
View file

@ -2503,67 +2503,67 @@ __metadata:
languageName: node
linkType: hard
"@octokit/auth-token@npm:^2.4.4":
version: 2.5.0
resolution: "@octokit/auth-token@npm:2.5.0"
"@octokit/auth-token@npm:^3.0.0":
version: 3.0.2
resolution: "@octokit/auth-token@npm:3.0.2"
dependencies:
"@octokit/types": ^6.0.3
checksum: 45949296c09abcd6beb4c3f69d45b0c1f265f9581d2a9683cf4d1800c4cf8259c2f58d58e44c16c20bffb85a0282a176c0d51f4af300e428b863f27b910e6297
"@octokit/types": ^8.0.0
checksum: c7204770a6cb1661379c31b5a26779b509324446e61a4902893a69fd471738c817afc470f8ac8d86ad827738cc953046d27fbb87fc81782ff10e366b70241f4e
languageName: node
linkType: hard
"@octokit/core@npm:^3.5.1":
version: 3.6.0
resolution: "@octokit/core@npm:3.6.0"
"@octokit/core@npm:^4.1.0":
version: 4.1.0
resolution: "@octokit/core@npm:4.1.0"
dependencies:
"@octokit/auth-token": ^2.4.4
"@octokit/graphql": ^4.5.8
"@octokit/request": ^5.6.3
"@octokit/request-error": ^2.0.5
"@octokit/types": ^6.0.3
"@octokit/auth-token": ^3.0.0
"@octokit/graphql": ^5.0.0
"@octokit/request": ^6.0.0
"@octokit/request-error": ^3.0.0
"@octokit/types": ^8.0.0
before-after-hook: ^2.2.0
universal-user-agent: ^6.0.0
checksum: f81160129037bd8555d47db60cd5381637b7e3602ad70735a7bdf8f3d250c7b7114a666bb12ef7a8746a326a5d72ed30a1b8f8a5a170007f7285c8e217bef1f0
checksum: 4e53e02ff3ebe808b74385be0055cc1cce4b548060b20e3f2d5dd1bf7877ff7b6556f11278edc070842bf24aa869f9f59a02638f1b14083eb290b9e297447a2d
languageName: node
linkType: hard
"@octokit/endpoint@npm:^6.0.1":
version: 6.0.12
resolution: "@octokit/endpoint@npm:6.0.12"
"@octokit/endpoint@npm:^7.0.0":
version: 7.0.3
resolution: "@octokit/endpoint@npm:7.0.3"
dependencies:
"@octokit/types": ^6.0.3
"@octokit/types": ^8.0.0
is-plain-object: ^5.0.0
universal-user-agent: ^6.0.0
checksum: b48b29940af11c4b9bca41cf56809754bb8385d4e3a6122671799d27f0238ba575b3fde86d2d30a84f4dbbc14430940de821e56ecc6a9a92d47fc2b29a31479d
checksum: c36b1577062e51d1683779a59c75d046d59f9a5c3a0f046d465e6c4c39f64bfc3a3052b42fa91a4552c7903ec382c604b4a2e1aadebdf7458191849ede5d4978
languageName: node
linkType: hard
"@octokit/graphql@npm:^4.5.8":
version: 4.8.0
resolution: "@octokit/graphql@npm:4.8.0"
"@octokit/graphql@npm:^5.0.0":
version: 5.0.4
resolution: "@octokit/graphql@npm:5.0.4"
dependencies:
"@octokit/request": ^5.6.0
"@octokit/types": ^6.0.3
"@octokit/request": ^6.0.0
"@octokit/types": ^8.0.0
universal-user-agent: ^6.0.0
checksum: f68afe53f63900d4a16a0a733f2f500df2695b731f8ed32edb728d50edead7f5011437f71d069c2d2f6d656227703d0c832a3c8af58ecf82bd5dcc051f2d2d74
checksum: 8cf65cf7e6608cf3cbc96a2fa902172b4d5dc30e88ee0bae3711bf467a25b828b10cce1aaabb7f82a7580bfbcf7028b91d1dd1a894940945e38ca2deb6509754
languageName: node
linkType: hard
"@octokit/openapi-types@npm:^12.11.0":
version: 12.11.0
resolution: "@octokit/openapi-types@npm:12.11.0"
checksum: 8a7d4bd6288cc4085cabe0ca9af2b87c875c303af932cb138aa1b2290eb69d32407759ac23707bb02776466e671244a902e9857896903443a69aff4b6b2b0e3b
"@octokit/openapi-types@npm:^14.0.0":
version: 14.0.0
resolution: "@octokit/openapi-types@npm:14.0.0"
checksum: 0a1f8f3be998cd82c5a640e9166d43fd183b33d5d36f5e1a9b81608e94d0da87c01ec46c9988f69cd26585d4e2ffc4d3ec99ee4f75e5fe997fc86dad0aa8293c
languageName: node
linkType: hard
"@octokit/plugin-paginate-rest@npm:^2.16.8":
version: 2.21.3
resolution: "@octokit/plugin-paginate-rest@npm:2.21.3"
"@octokit/plugin-paginate-rest@npm:^5.0.0":
version: 5.0.1
resolution: "@octokit/plugin-paginate-rest@npm:5.0.1"
dependencies:
"@octokit/types": ^6.40.0
"@octokit/types": ^8.0.0
peerDependencies:
"@octokit/core": ">=2"
checksum: acf31de2ba4021bceec7ff49c5b0e25309fc3c009d407f153f928ddf436ab66cd4217344138378d5523f5fb233896e1db58c9c7b3ffd9612a66d760bc5d319ed
"@octokit/core": ">=4"
checksum: cfded297d9f66c7607bd34075eb0c5f7278a1617d6be86115997c0757151c9be2fcf7a8849c2a5cebab56931a263b5cc35742b6227935afe77f5ed61b0627a3d
languageName: node
linkType: hard
@ -2576,61 +2576,61 @@ __metadata:
languageName: node
linkType: hard
"@octokit/plugin-rest-endpoint-methods@npm:^5.12.0":
version: 5.16.2
resolution: "@octokit/plugin-rest-endpoint-methods@npm:5.16.2"
"@octokit/plugin-rest-endpoint-methods@npm:^6.7.0":
version: 6.7.0
resolution: "@octokit/plugin-rest-endpoint-methods@npm:6.7.0"
dependencies:
"@octokit/types": ^6.39.0
"@octokit/types": ^8.0.0
deprecation: ^2.3.1
peerDependencies:
"@octokit/core": ">=3"
checksum: 30fcc50c335d1093f03573d9fa3a4b7d027fc98b215c43e07e82ee8dabfa0af0cf1b963feb542312ae32d897a2f68dc671577206f30850215517bebedc5a2c73
checksum: 513c6c0717d08f3e85848029bd700412b7d9787750f78cc79a3dede356e94b238bf8a518b108f556a7efe626871720dd0466de9f31091578ea4e0f5a016f0ae7
languageName: node
linkType: hard
"@octokit/request-error@npm:^2.0.5, @octokit/request-error@npm:^2.1.0":
version: 2.1.0
resolution: "@octokit/request-error@npm:2.1.0"
"@octokit/request-error@npm:^3.0.0":
version: 3.0.2
resolution: "@octokit/request-error@npm:3.0.2"
dependencies:
"@octokit/types": ^6.0.3
"@octokit/types": ^8.0.0
deprecation: ^2.0.0
once: ^1.4.0
checksum: baec2b5700498be01b4d958f9472cb776b3f3b0ea52924323a07e7a88572e24cac2cdf7eb04a0614031ba346043558b47bea2d346e98f0e8385b4261f138ef18
checksum: 41549554ce780de13d3421f8036635014c8dcbdf867c288526ef7b17e9d92470f33341ddadacf2868dc0181440842803484104efbe11ebfaecdaeec58871a13e
languageName: node
linkType: hard
"@octokit/request@npm:^5.6.0, @octokit/request@npm:^5.6.3":
version: 5.6.3
resolution: "@octokit/request@npm:5.6.3"
"@octokit/request@npm:^6.0.0":
version: 6.2.2
resolution: "@octokit/request@npm:6.2.2"
dependencies:
"@octokit/endpoint": ^6.0.1
"@octokit/request-error": ^2.1.0
"@octokit/types": ^6.16.1
"@octokit/endpoint": ^7.0.0
"@octokit/request-error": ^3.0.0
"@octokit/types": ^8.0.0
is-plain-object: ^5.0.0
node-fetch: ^2.6.7
universal-user-agent: ^6.0.0
checksum: c0b4542eb4baaf880d673c758d3e0b5c4a625a4ae30abf40df5548b35f1ff540edaac74625192b1aff42a79ac661e774da4ab7d5505f1cb4ef81239b1e8510c5
checksum: adbeb38807c60b53d32d9b69be0c1f861c26698bc6f5f3f7e05d26972290dc4867827dd333bdd801818c347e5723efd049a2b9848c6c8bf74a2032968dede0ff
languageName: node
linkType: hard
"@octokit/rest@npm:18.12.0":
version: 18.12.0
resolution: "@octokit/rest@npm:18.12.0"
"@octokit/rest@npm:19.0.5":
version: 19.0.5
resolution: "@octokit/rest@npm:19.0.5"
dependencies:
"@octokit/core": ^3.5.1
"@octokit/plugin-paginate-rest": ^2.16.8
"@octokit/core": ^4.1.0
"@octokit/plugin-paginate-rest": ^5.0.0
"@octokit/plugin-request-log": ^1.0.4
"@octokit/plugin-rest-endpoint-methods": ^5.12.0
checksum: c18bd6676a60b66819b016b0f969fcd04d8dfa04d01b7af9af9a7410ff028c621c995185e29454c23c47906da506c1e01620711259989a964ebbfd9106f5b715
"@octokit/plugin-rest-endpoint-methods": ^6.7.0
checksum: ed4c36859aafb64e23f7f708086fe7e2ecda17ffd8c1594817d539f766f5855af79f17f5d225d96d34cd9b97cbfea988dac3df39a7cc928b2d2b7b75ed981056
languageName: node
linkType: hard
"@octokit/types@npm:^6.0.3, @octokit/types@npm:^6.16.1, @octokit/types@npm:^6.39.0, @octokit/types@npm:^6.40.0":
version: 6.41.0
resolution: "@octokit/types@npm:6.41.0"
"@octokit/types@npm:^8.0.0":
version: 8.1.1
resolution: "@octokit/types@npm:8.1.1"
dependencies:
"@octokit/openapi-types": ^12.11.0
checksum: fd6f75e0b19b90d1a3d244d2b0c323ed8f2f05e474a281f60a321986683548ef2e0ec2b3a946aa9405d6092e055344455f69f58957c60f58368c8bdda5b7d2ab
"@octokit/openapi-types": ^14.0.0
checksum: 4a51ce3d7f0448110dc035fc2cbfa4a0e6b9e5b0c945ad80904a7300830335979a1c75affe3f801baf25350abe003b36195e634f4c2b4ce1b564d812e9f0d649
languageName: node
linkType: hard
@ -11000,7 +11000,7 @@ __metadata:
"@babel/runtime": 7.20.7
"@commitlint/cli": 17.3.0
"@commitlint/config-conventional": 12.1.4
"@octokit/rest": 18.12.0
"@octokit/rest": 19.0.5
"@trivago/prettier-plugin-sort-imports": 4.0.0
"@types/async": 3.2.13
"@types/express": 4.17.14