diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index c4e2689..737efa8 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -79,7 +79,9 @@ jobs: }); const latestTag = tags.length > 0 ? tags[0].name : null; - const latestTagDate = latestTag ? new Date(latestTag.commit.committer.date) : null; + const latestTagDate = latestTag && latestTag.commit && latestTag.commit.committer + ? new Date(latestTag.commit.committer.date) + : null; const { data: commits } = await github.rest.repos.listCommits({ owner: context.repo.owner, diff --git a/package.json b/package.json index 7f94822..78d1218 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docugrammar", - "version": "3.1.8", + "version": "3.1.9", "private": true, "scripts": { "docusaurus": "docusaurus",