Skip to content

Commit e97b79f

Browse files
authored
Merge branch 'main' into patch-1
2 parents 988dc72 + 56abc4a commit e97b79f

File tree

6 files changed

+29
-3
lines changed

6 files changed

+29
-3
lines changed

.github/workflows/ci.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
with:
3939
path: "**/node_modules"
4040
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
41+
restore-keys: |
42+
yarn-build-
4143
4244
- name: Install dependencies
4345
if: steps.cache-yarn.outputs.cache-hit != 'true'
@@ -78,6 +80,8 @@ jobs:
7880
with:
7981
path: "**/node_modules"
8082
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
83+
restore-keys: |
84+
yarn-build-
8185
8286
- name: Install dependencies
8387
if: steps.cache-yarn.outputs.cache-hit != 'true'
@@ -107,6 +111,8 @@ jobs:
107111
with:
108112
path: "**/node_modules"
109113
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
114+
restore-keys: |
115+
yarn-build-
110116
111117
- name: Install dependencies
112118
if: steps.cache-yarn.outputs.cache-hit != 'true'
@@ -347,6 +353,8 @@ jobs:
347353
with:
348354
path: "**/node_modules"
349355
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
356+
restore-keys: |
357+
yarn-build-
350358
351359
- name: Download release packages
352360
uses: actions/download-artifact@v2

.github/workflows/publish.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
needs: npm
4343
runs-on: macos-latest
4444
steps:
45+
# Ensure things are up to date
46+
# Suggested by homebrew maintainers
47+
# https://github.com/Homebrew/discussions/discussions/1532#discussioncomment-782633
48+
- name: Set up Homebrew
49+
id: set-up-homebrew
50+
uses: Homebrew/actions/setup-homebrew@master
51+
4552
- uses: actions/checkout@v2
4653
- name: Configure git
4754
run: |

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ VS Code v0.00.0
5858
- chore: cross-compile docker images with buildx #3166 @oxy
5959
- chore: update node to v14 #3458 @oxy
6060

61+
### Development
62+
63+
- fix(publish): update cdrci fork in brew-bump.sh #3468 @jsjoeio
64+
6165
## 3.10.2
6266

6367
VS Code v1.56.1

ci/build/npm-postinstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ main() {
7575

7676
# This is a copy of symlink_asar in ../lib.sh. Look there for details.
7777
symlink_asar() {
78-
rm -f node_modules.asar
78+
rm -rf node_modules.asar
7979
if [ "${WINDIR-}" ]; then
8080
mklink /J node_modules.asar node_modules
8181
else

ci/lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ RELEASE_PATH="${RELEASE_PATH-release}"
113113
# Code itself but also extensions will look specifically in this directory for
114114
# files (like the ripgrep binary or the oniguruma wasm).
115115
symlink_asar() {
116-
rm -f node_modules.asar
116+
rm -rf node_modules.asar
117117
if [ "${WINDIR-}" ]; then
118118
# mklink takes the link name first.
119119
mklink /J node_modules.asar node_modules

ci/steps/brew-bump.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ main() {
2626
git merge upstream/master
2727

2828
echo "Pushing changes to cdrci/homebrew-core fork on GitHub"
29-
git push origin master
29+
# Source: https://serverfault.com/a/912788
30+
# shellcheck disable=SC2016,SC2028
31+
echo '#!/bin/sh\nexec echo "$HOMEBREW_GITHUB_API_TOKEN"' >"$HOME"/.git-askpass.sh
32+
# Ensure it's executable since we just created it
33+
chmod +x "$HOME/.git-askpass.sh"
34+
# GIT_ASKPASS lets us use the password when pushing without revealing it in the process list
35+
# See: https://serverfault.com/a/912788
36+
GIT_ASKPASS="$HOME/.git-askpass.sh" git push https://[email protected]/cdr-oss/homebrew-core.git --all
3037

3138
# Find the docs for bump-formula-pr here
3239
# https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18

0 commit comments

Comments
 (0)