We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d3ec0 commit 5ad30ccCopy full SHA for 5ad30cc
.semaphore/semaphore.yml
@@ -1,4 +1,6 @@
1
# copied from https://docs.semaphoreci.com/article/50-pipeline-yaml
2
+# NodeJS and JavaScript docs
3
+# https://docs.semaphoreci.com/article/82-language-javascript-and-nodejs
4
version: v1.0
5
name: Cypress example Kitchensink
6
agent:
@@ -15,6 +17,14 @@ blocks:
15
17
- echo $SEMAPHORE_PIPELINE_ID
16
18
- echo $HOME
19
- echo $SEMAPHORE_GIT_DIR
- prologue:
20
+ - name: Install dependencies
21
+ task:
22
+ jobs:
23
+ - name: npm ci and cache
24
commands:
25
- checkout
26
+ - cache restore npm-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json)
27
+ - npm ci
28
+ - cache store npm-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json) ~/.npm
29
+ # TODO store ~/.cache
30
+ - npm run print-env -- SEMAPHORE
0 commit comments