mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-23 05:53:36 +00:00
actions: use yarn
This commit is contained in:
parent
6999428b0f
commit
d557f1c912
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -14,15 +14,18 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
|
- name: Get yarn cache directory path
|
||||||
|
id: yarn-cache-dir-path
|
||||||
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
- name: Cache Node.js modules
|
- name: Cache Node.js modules
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-node-
|
${{ runner.OS }}-node-
|
||||||
- run: npm install
|
- run: yarn install --prefer-offline
|
||||||
- run: npm run build
|
- run: yarn build
|
||||||
- uses: aquiladev/ipfs-action@v0.1.5
|
- uses: aquiladev/ipfs-action@v0.1.5
|
||||||
id: ipfs-add
|
id: ipfs-add
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user