Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 7, 2022
1 parent 1eddb54 commit 2feb044
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .changeset/friendly-birds-happen.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'@segment/analytics-core': minor
---

Migrate common code into core.
Migrate shared code into core.
5 changes: 4 additions & 1 deletion .github/workflows/release-creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
node-version: 12.x
cache: "yarn"

- name: Set yarn version
run: yarn set version self

- name: Install Dependencies
run: HUSKY=0 yarn install --immutable
run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn install --immutable

- name: Create or Update Release PR
id: changesets
Expand Down
12 changes: 4 additions & 8 deletions scripts/update-lockfile.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/bin/bash
# Changesets does not support yarn, so if the resolutions change, we want to commit them as part of the version pipeline.
echo "pwd: $(pwd)"
echo "Checking if yarn.lock is up-to-date"
yarn install
if [[ -n $(git status --porcelain | grep yarn.lock) ]]; then
echo "Adding yarn.lock..."
git add yarn.lock
# The yarn.lock will be auto-commited by the changeset github action
else
echo "No yarn.lock updates needed"
fi
YARN_ENABLE_IMMUTABLE_INSTALLS=false node .yarn/releases/yarn-3.2.1.cjs # https://github.com/changesets/action/issues/170
git add yarn.lock
git status --porcelain

0 comments on commit 2feb044

Please sign in to comment.