Last active
July 6, 2021 00:49
-
-
Save fcamblor/9f96424f675537df36c903abc54feb92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zx | |
void async function() { | |
await $`curl -sSL https://raw.githubusercontent.com/fcamblor/bitrise-zx-scripts/main/index.mjs > /tmp/index.mjs` | |
const {config, cacheableCommand} = await import('/tmp/index.mjs'); | |
config(process); | |
await cacheableCommand({ | |
cacheName:'cma-npm-packages', | |
cachedPaths: ['node_modules'], | |
compressContent: true, | |
checksumCommand: () => $`md5 -q package.json` | |
}, () => $`npm install`); | |
}() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment