mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
actions: use yarn
This commit is contained in:
parent
6999428b0f
commit
d557f1c912
1 changed files with 7 additions and 4 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -14,15 +14,18 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
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
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.OS }}-node-
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
- run: yarn install --prefer-offline
|
||||
- run: yarn build
|
||||
- uses: aquiladev/ipfs-action@v0.1.5
|
||||
id: ipfs-add
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue