Closed ANGkeith closed 3 years ago
You cannot delete node_modules because github actions need all the code to run in the repo
ok. my bad, did'nt know that
by the way, @remorses what about the typescript version?
npx tsc
failed to compile in a clean repo, and got the following error:
$ npx tsc
src/createTag.ts:20:48 - error TS1109: Expression expected.
20 const repo = process.env.GITHUB_REPOSITORY?.split('/').pop() as string
~
src/createTag.ts:22:5 - error TS1005: ':' expected.
22 const tags = await git.repos.listTags({
~~~~~
src/main.ts:40:24 - error TS1109: Expression expected.
40 preReleaseTag ?? undefined,
~
src/main.ts:40:35 - error TS1005: ':' expected.
40 preReleaseTag ?? undefined,
~
Found 4 errors.
i am only managed to regenerate the same js with 4.0.8
typescript
version to4.0.8
tsc
has compilation error when using the version specified in the package.json. Pinned thetsc
to version4.0.8
.