File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const config = {
16
16
"**/test-apps/**" ,
17
17
"**/integration-tests/**/*.cjs" ,
18
18
"**/integration-tests/test-api/**/*" ,
19
- "**/scripts/publish-docs.js " ,
19
+ "**/scripts/publish-docs.mjs " ,
20
20
"**/typedoc/plugin-remove-references.js" ,
21
21
] ,
22
22
parserOptions : {
Original file line number Diff line number Diff line change 5
5
6
6
jobs :
7
7
deploy_docs :
8
+ permissions :
9
+ contents : ' write'
8
10
name : Deploy TypeDocs
9
11
runs-on : ubuntu-latest
10
12
steps :
11
13
- name : Checkout Repo
12
14
uses : actions/checkout@v4
13
15
16
+ - name : Import GPG key
17
+ id : import-gpg
18
+ uses : crazy-max/ghaction-import-gpg@v6
19
+ with :
20
+ gpg_private_key : ${{ secrets.RELEASER_GPG_PRIVATE_KEY }}
21
+ git_user_signingkey : true
22
+ git_commit_gpgsign : true
23
+ git_config_global : true
24
+
25
+ - name : Setup Git
26
+ run : |
27
+ echo "machine github.com login x password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
28
+ git config --global url."https://github.com/".insteadOf "git://github.com/"
29
+ git config --global advice.detachedHead false
30
+
14
31
- name : Set up Node
15
32
uses : actions/setup-node@v4
16
33
with :
23
40
run_install : true
24
41
25
42
- name : Publish new docs
26
- run : node scripts/publish-docs.js
43
+ run : node scripts/publish-docs.mjs
44
+ env :
45
+ GIT_USERNAME : ${{ steps.import-gpg.outputs.name }}
46
+ GIT_EMAIL : ${{ steps.import-gpg.outputs.email }}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { execSync } from "child_process";
2
2
3
3
function buildDocs ( ) {
4
4
execSync ( "rm -rf ./typedoc/docs" ) ;
5
+ execSync ( "pnpm run build" ) ;
5
6
execSync ( "pnpm run generate:typedoc" ) ;
6
7
}
7
8
@@ -10,9 +11,11 @@ function publishDocs() {
10
11
mkdir /tmp/js-docs
11
12
cp -r ./typedoc/docs /tmp/js-docs/docs
12
13
cd /tmp/js-docs && \
13
- git clone --single-branch --branch gh-pages git@ github.com: codecov/codecov-javascript-bundler-plugins.git && \
14
+ git clone --single-branch --branch gh-pages https:// github.com/ codecov/codecov-javascript-bundler-plugins.git && \
14
15
cp -r /tmp/js-docs/docs/* /tmp/js-docs/codecov-javascript-bundler-plugins/ && \
15
16
cd /tmp/js-docs/codecov-javascript-bundler-plugins && \
17
+ git config --global user.name "codecov-releaser" && \
18
+ git config --global user.email "[email protected] " && \
16
19
git add --all && \
17
20
git commit -m "meta: Update docs" && \
18
21
git push origin gh-pages` ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://typedoc.org/schema.json" ,
3
3
"readme" : " README.md" ,
4
- "name" : " Codecov JavaScript Bundler PLugins " ,
4
+ "name" : " Codecov JavaScript Bundler Plugins " ,
5
5
"entryPoints" : [" packages/*" ],
6
6
"entryPointStrategy" : " packages" ,
7
7
"out" : " ./typedoc/docs" ,
8
- "includeVersion" : true ,
8
+ "includeVersion" : false ,
9
9
"excludePrivate" : true ,
10
10
"excludeExternals" : true ,
11
11
"excludeReferences" : true ,
You can’t perform that action at this time.
0 commit comments