actions: use yarn

This commit is contained in:
FireMasterK 2021-01-02 19:21:44 +05:30
parent 6999428b0f
commit d557f1c912
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58
1 changed files with 7 additions and 4 deletions

View File

@ -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: