chore(setup): add yarn cache on workflow runs
This commit is contained in:
12
.github/workflows/desktop.release.reuse.yml
vendored
12
.github/workflows/desktop.release.reuse.yml
vendored
@@ -24,7 +24,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
- run: yarn install
|
cache: 'yarn'
|
||||||
|
- run: yarn install --immutable
|
||||||
- run: yarn build:desktop
|
- run: yarn build:desktop
|
||||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||||
|
|
||||||
@@ -59,12 +60,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
- name: Install FPM
|
- name: Install FPM
|
||||||
run: sudo gem install fpm -f
|
run: sudo gem install fpm -f
|
||||||
|
|
||||||
- run: yarn install
|
- run: yarn install --immutable
|
||||||
- run: yarn build:desktop
|
- run: yarn build:desktop
|
||||||
|
|
||||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||||
@@ -133,7 +135,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
- run: yarn install
|
cache: 'yarn'
|
||||||
|
- run: yarn install --immutable
|
||||||
- run: yarn build:desktop
|
- run: yarn build:desktop
|
||||||
- run: yarn run webpack --config desktop.webpack.prod.js
|
- run: yarn run webpack --config desktop.webpack.prod.js
|
||||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||||
@@ -162,8 +165,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
|
||||||
- run: yarn install
|
- run: yarn install --immutable
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/desktop.windows.sign.yml
vendored
4
.github/workflows/desktop.windows.sign.yml
vendored
@@ -19,7 +19,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
- run: yarn install
|
cache: 'yarn'
|
||||||
|
- run: yarn install --immutable
|
||||||
- run: yarn build:desktop
|
- run: yarn build:desktop
|
||||||
- run: yarn run webpack --config desktop.webpack.prod.js
|
- run: yarn run webpack --config desktop.webpack.prod.js
|
||||||
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
|
||||||
@@ -47,6 +48,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: assets
|
name: assets
|
||||||
|
|||||||
2
.github/workflows/docs.deploy.yml
vendored
2
.github/workflows/docs.deploy.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
cache: yarn
|
cache: yarn
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install --immutable
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn workspace @standardnotes/docs run build
|
run: yarn workspace @standardnotes/docs run build
|
||||||
|
|||||||
4
.github/workflows/mobile.release.prod.yml
vendored
4
.github/workflows/mobile.release.prod.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
echo "${{ secrets.ANDROID_KEYSTORE }}" > keystore.keystore.asc
|
echo "${{ secrets.ANDROID_KEYSTORE }}" > keystore.keystore.asc
|
||||||
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
|
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install --immutable
|
||||||
- run: yarn build:mobile
|
- run: yarn build:mobile
|
||||||
- name: Ruby Setup for Fastlane
|
- name: Ruby Setup for Fastlane
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install && yarn install:pods
|
run: yarn install --immutable && yarn install:pods
|
||||||
- run: yarn build:mobile
|
- run: yarn build:mobile
|
||||||
- name: Set ssh connection to Github
|
- name: Set ssh connection to Github
|
||||||
uses: webfactory/ssh-agent@v0.4.1
|
uses: webfactory/ssh-agent@v0.4.1
|
||||||
|
|||||||
4
.github/workflows/mobile.release.test.yml
vendored
4
.github/workflows/mobile.release.test.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- name: Ruby Setup for Fastlane
|
- name: Ruby Setup for Fastlane
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install --immutable
|
||||||
- run: yarn build:mobile
|
- run: yarn build:mobile
|
||||||
- name: fastlane
|
- name: fastlane
|
||||||
uses: maierj/fastlane-action@v1.4.0
|
uses: maierj/fastlane-action@v1.4.0
|
||||||
@@ -73,7 +73,7 @@ jobs:
|
|||||||
- name: Ruby Setup for Fastlane
|
- name: Ruby Setup for Fastlane
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install && yarn install:pods
|
run: yarn install --immutable && yarn install:pods
|
||||||
- run: yarn build:mobile
|
- run: yarn build:mobile
|
||||||
- name: Set ssh connection to Github
|
- name: Set ssh connection to Github
|
||||||
uses: webfactory/ssh-agent@v0.4.1
|
uses: webfactory/ssh-agent@v0.4.1
|
||||||
|
|||||||
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@@ -20,6 +20,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Setup git config
|
- name: Setup git config
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
3
.github/workflows/snjs.upgrade.event.yml
vendored
3
.github/workflows/snjs.upgrade.event.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
- name: Setup git config
|
- name: Setup git config
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "standardci"
|
git config --global user.name "standardci"
|
||||||
@@ -44,4 +45,4 @@ jobs:
|
|||||||
commit-message: "${{ 'chore(deps): upgrade snjs' }}"
|
commit-message: "${{ 'chore(deps): upgrade snjs' }}"
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
committer: standardci <ci@standardnotes.com>
|
committer: standardci <ci@standardnotes.com>
|
||||||
author: standardci <ci@standardnotes.com>
|
author: standardci <ci@standardnotes.com>
|
||||||
|
|||||||
Reference in New Issue
Block a user