Skip to content

Instantly share code, notes, and snippets.

@fcamblor
Last active July 6, 2021 00:49
Show Gist options
  • Save fcamblor/9f96424f675537df36c903abc54feb92 to your computer and use it in GitHub Desktop.
Save fcamblor/9f96424f675537df36c903abc54feb92 to your computer and use it in GitHub Desktop.
#!/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