diff --git a/.github/workflows/desktop.release.reuse.yml b/.github/workflows/desktop.release.reuse.yml index aff345422..fda734f91 100644 --- a/.github/workflows/desktop.release.reuse.yml +++ b/.github/workflows/desktop.release.reuse.yml @@ -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: diff --git a/.github/workflows/desktop.windows.sign.yml b/.github/workflows/desktop.windows.sign.yml index 03d296716..c79bfe3dc 100644 --- a/.github/workflows/desktop.windows.sign.yml +++ b/.github/workflows/desktop.windows.sign.yml @@ -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 diff --git a/.github/workflows/docs.deploy.yml b/.github/workflows/docs.deploy.yml index 132a43746..52936259b 100644 --- a/.github/workflows/docs.deploy.yml +++ b/.github/workflows/docs.deploy.yml @@ -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 diff --git a/.github/workflows/mobile.release.prod.yml b/.github/workflows/mobile.release.prod.yml index 2f2ce6ef3..7f71c383a 100644 --- a/.github/workflows/mobile.release.prod.yml +++ b/.github/workflows/mobile.release.prod.yml @@ -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 diff --git a/.github/workflows/mobile.release.test.yml b/.github/workflows/mobile.release.test.yml index b5834ebb8..94f17a447 100644 --- a/.github/workflows/mobile.release.test.yml +++ b/.github/workflows/mobile.release.test.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a48a922f5..cdfc9ddbf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,7 @@ jobs: with: registry-url: 'https://registry.npmjs.org' node-version-file: '.nvmrc' + cache: 'yarn' - name: Setup git config run: | diff --git a/.github/workflows/snjs.upgrade.event.yml b/.github/workflows/snjs.upgrade.event.yml index 202a71c8c..1dfad8be4 100644 --- a/.github/workflows/snjs.upgrade.event.yml +++ b/.github/workflows/snjs.upgrade.event.yml @@ -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 - author: standardci \ No newline at end of file + author: standardci