chore(setup): add yarn cache on workflow runs

This commit is contained in:
Karol Sójko
2022-08-04 08:20:01 +02:00
parent 58138c9a1f
commit c72a407095
7 changed files with 19 additions and 11 deletions

View File

@@ -24,7 +24,8 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn install
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build:desktop
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
@@ -59,12 +60,13 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Install FPM
run: sudo gem install fpm -f
- run: yarn install
- run: yarn install --immutable
- run: yarn build:desktop
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
@@ -133,7 +135,8 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn install
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build:desktop
- run: yarn run webpack --config desktop.webpack.prod.js
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
@@ -162,8 +165,9 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install
- run: yarn install --immutable
- uses: actions/download-artifact@v3
with:

View File

@@ -19,7 +19,8 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn install
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build:desktop
- run: yarn run webpack --config desktop.webpack.prod.js
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
@@ -47,6 +48,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- uses: actions/download-artifact@v3
with:
name: assets

View File

@@ -18,7 +18,7 @@ jobs:
cache: yarn
- name: Install dependencies
run: yarn install
run: yarn install --immutable
- name: Build
run: yarn workspace @standardnotes/docs run build

View File

@@ -26,7 +26,7 @@ jobs:
echo "${{ secrets.ANDROID_KEYSTORE }}" > keystore.keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
- name: Install dependencies
run: yarn install
run: yarn install --immutable
- run: yarn build:mobile
- name: Ruby Setup for Fastlane
uses: ruby/setup-ruby@v1
@@ -82,7 +82,7 @@ jobs:
run:
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
- name: Install dependencies
run: yarn install && yarn install:pods
run: yarn install --immutable && yarn install:pods
- run: yarn build:mobile
- name: Set ssh connection to Github
uses: webfactory/ssh-agent@v0.4.1

View File

@@ -28,7 +28,7 @@ jobs:
- name: Ruby Setup for Fastlane
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: yarn install
run: yarn install --immutable
- run: yarn build:mobile
- name: fastlane
uses: maierj/fastlane-action@v1.4.0
@@ -73,7 +73,7 @@ jobs:
- name: Ruby Setup for Fastlane
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: yarn install && yarn install:pods
run: yarn install --immutable && yarn install:pods
- run: yarn build:mobile
- name: Set ssh connection to Github
uses: webfactory/ssh-agent@v0.4.1

View File

@@ -20,6 +20,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Setup git config
run: |

View File

@@ -18,6 +18,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Setup git config
run: |
git config --global user.name "standardci"
@@ -44,4 +45,4 @@ jobs:
commit-message: "${{ 'chore(deps): upgrade snjs' }}"
delete-branch: true
committer: standardci <ci@standardnotes.com>
author: standardci <ci@standardnotes.com>
author: standardci <ci@standardnotes.com>