Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,16 @@ jobs:
echo ::set-output name=NEXT_VERSION::${NEXT_VERSION}

git checkout -b nightly/${NEXT_VERSION}
npm version ${NEXT_VERSION}

if [ -z "$(git status --porcelain)" ]; then
echo "✨"
else
echo "dirty working directory..."
git add .
git commit -m "dirty working directory..."
Comment on lines +55 to +57
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a dirty working directory? What steps trigger file changes?

Copy link
Copy Markdown
Contributor Author

@mcansh mcansh Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great question, that i'd love to have an answer for!

the only files that change during the workflow are package.jsons after running our version script which are immediately committed, and that's done after this check 🤷

in my test repo i was getting a changed package-lock.json, but not sure what the dirtiness is here.

might be fine to leave the commit for a day and see if we can remove it tomorrow after we know what changed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good 👍

fi

yarn run version ${NEXT_VERSION} --skip-prompt

git push origin --tags

Expand Down
10 changes: 6 additions & 4 deletions scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ async function run(args) {
}

// Confirm the next version number
let answer = await prompt(
`Are you sure you want to bump version ${currentVersion} to ${nextVersion}? [Yn] `
);
if (answer === false) return 0;
if (prereleaseId !== "--skip-prompt") {
let answer = await prompt(
`Are you sure you want to bump version ${currentVersion} to ${nextVersion}? [Yn] `
);
if (answer === false) return 0;
}

await incrementRemixVersion(nextVersion);
}
Expand Down