diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-01 14:14:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-03 10:14:17 +0100 |
commit | 51e9e152f7df003c65c16f822669a0674efcaf03 (patch) | |
tree | a18abdf95bfc449d8d08e4c47e8ccc7ee094bbf4 /.github/actions/reusable-prepare-peertube-build | |
parent | f3fbbf01402fc7491e044f160edca06ef793eb50 (diff) | |
download | PeerTube-51e9e152f7df003c65c16f822669a0674efcaf03.tar.gz PeerTube-51e9e152f7df003c65c16f822669a0674efcaf03.tar.zst PeerTube-51e9e152f7df003c65c16f822669a0674efcaf03.zip |
Build nightly using github action
Diffstat (limited to '.github/actions/reusable-prepare-peertube-build')
-rw-r--r-- | .github/actions/reusable-prepare-peertube-build/action.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/actions/reusable-prepare-peertube-build/action.yml b/.github/actions/reusable-prepare-peertube-build/action.yml new file mode 100644 index 000000000..41ebf71c5 --- /dev/null +++ b/.github/actions/reusable-prepare-peertube-build/action.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | name: "Reusable prepare PeerTube build" | ||
2 | |||
3 | description: "Reusable prepare PeerTube build" | ||
4 | |||
5 | inputs: | ||
6 | node-version: | ||
7 | required: true | ||
8 | description: 'NodeJS version' | ||
9 | |||
10 | runs: | ||
11 | using: "composite" | ||
12 | |||
13 | steps: | ||
14 | - name: Use Node.js | ||
15 | uses: actions/setup-node@v1 | ||
16 | with: | ||
17 | node-version: ${{ inputs.node-version }} | ||
18 | |||
19 | - name: Cache Node.js modules | ||
20 | uses: actions/cache@v2 | ||
21 | with: | ||
22 | path: | | ||
23 | **/node_modules | ||
24 | key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }} | ||
25 | restore-keys: | | ||
26 | ${{ runner.OS }}-node- | ||
27 | ${{ runner.OS }}- | ||
28 | |||
29 | - name: Install dependencies | ||
30 | shell: bash | ||
31 | run: yarn install --frozen-lockfile | ||