Skip to content

Commit

Permalink
Fix changeset checker to stop using since option (#5555)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Sep 28, 2021
1 parent addd8b1 commit 2ad6ce8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
- name: Yarn install
run: yarn
- name: Run changeset script
run: yarn ts-node-script scripts/ci/check_changeset.ts
# pull master so changeset can diff against it
run: |
git pull -f --no-rebase origin master:master
yarn ts-node-script scripts/ci/check_changeset.ts
id: check-changeset
- name: Print changeset checker output
run: echo "${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
run: yarn

- name: Add a changeset for @firebase/app
# pull master so changeset can diff against it
run: |
git pull -f origin master:master
git pull -f --no-rebase origin master:master
yarn ts-node-script scripts/ci/add_changeset.ts
- name: Create Release Pull Request
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/check_changeset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async function parseChangesetFile(changesetFile: string) {
async function main() {
const errors = [];
try {
await exec(`yarn changeset status --since ${baseRef}`);
await exec(`yarn changeset status`);
console.log(`::set-output name=BLOCKING_FAILURE::false`);
} catch (e) {
if (e.message.match('No changesets present')) {
Expand Down

0 comments on commit 2ad6ce8

Please sign in to comment.