Skip to content

Commit

Permalink
Use @actions/tools-cache to cache esy installation
Browse files Browse the repository at this point in the history
Add allowSyntheticDefaultImports = true

Because of validateNPMPackageName.
Otherwise,

```
14 import validateNPMPackageName from "validate-npm-package-name";
          ~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@types/validate-npm-package-name/index.d.ts:29:1
    29 export = validate;
       ~~~~~~~~~~~~~~~~~~
    This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.

Found 1 error in index.ts:14
```

Add support for using package tags/versions in package name (spec)
  • Loading branch information
ManasJayanth committed Jul 13, 2024
1 parent 78b4c52 commit ea5bdc1
Show file tree
Hide file tree
Showing 6 changed files with 5,525 additions and 58 deletions.
23 changes: 23 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,29 @@ inputs:
postinstall-js:
description: Path to a postinstall.js file that would be run by NPM
required: false
setup-esy:
description: Flag to control if esy itself should be installed by the action
required: false
setup-esy-tarball:
description:
URL to esy tarball. Must be provided together with shasum and version.
Else, the action will default to latest from NPM
required: false
setup-esy-shasum:
description:
shasum of the tarball. Must be provided together with shasum and version.
Else, the action will default to latest from NPM
required: false
setup-esy-version:
description:
version of the esy tool. Must be provided together with shasum and
version. Else, the action will default to latest from NPM
required: false
setup-esy-npm-package:
description:
Alternative NPM package that contains esy. Can contain version/tag too. Eg
esy@beta.
required: false
runs:
using: node20
main: dist/index.js
Expand Down
Loading

0 comments on commit ea5bdc1

Please sign in to comment.