@@ -15,9 +15,6 @@ inputs:
1515 required : false
1616 description : ' development or production'
1717 default : ' development'
18- deno-version :
19- required : false
20- description : ' Deno version. If not provided, read from .tool-versions'
2118 NPM_TOKEN :
2219 required : false
2320 description : ' NPM token'
@@ -30,9 +27,6 @@ outputs:
3027 node-version :
3128 description : ' Node version'
3229 value : ${{ steps.node-version.outputs.node-version }}
33- cache-deno-hit :
34- description : ' Exact key hit for Deno cache'
35- value : ${{ steps.cache-deno.outputs.cache-hit }}
3630
3731runs :
3832 using : composite
@@ -48,36 +42,13 @@ runs:
4842 echo "NODE_VERSION: ${NODE_VERSION}"
4943 echo "NODE_VERSION=${NODE_VERSION}" >> $GITHUB_ENV
5044
51- DENO_VERSION="${{ inputs.deno-version }}"
52- if [ -z "$DENO_VERSION" ]; then
53- DENO_VERSION=$(awk '$1=="deno"{ print $2 }' .tool-versions)
54- fi
55- echo "DENO_VERSION: ${DENO_VERSION}"
56- echo "DENO_VERSION=${DENO_VERSION}" >> $GITHUB_ENV
57-
58- # Turbo local cache: use rharkor/caching-for-turbo in workflows — not stored here to avoid huge redundant keys.
59- - name : Cache Deno (apps)
60- if : inputs.cache-modules
61- id : cache-deno
62- uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
63- with :
64- path : packages/apps/.deno-cache
65- key : deno-${{ runner.os }}-${{ runner.arch }}-v${{ env.DENO_VERSION }}-${{ hashFiles('packages/apps/deno-runtime/deno.lock') }}
66- restore-keys : |
67- deno-${{ runner.os }}-${{ runner.arch }}-v${{ env.DENO_VERSION }}-
68-
6945 - name : Use Node.js ${{ env.NODE_VERSION }}
7046 id : node-version
7147 uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
7248 with :
7349 node-version : ${{ env.NODE_VERSION }}
7450 cache : ${{ inputs.cache-modules && 'yarn' || '' }}
7551
76- - name : Use Deno ${{ env.DENO_VERSION }}
77- uses : denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
78- with :
79- deno-version : ${{ env.DENO_VERSION }}
80-
8152 - name : Cache mongodb-memory-server binary
8253 if : inputs.cache-modules
8354 uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
0 commit comments