-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(comment) use current branch when gathering PRs for stable release (#…
…5342) Signed-off-by: Logan McAnsh <[email protected]> (cherry picked from commit f499e98)
- Loading branch information
Showing
7 changed files
with
64 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ jobs: | |
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Remix Run Bot" | ||
git checkout -b nightly/${{steps.version.outputs.NEXT_VERSION}} | ||
git checkout -b nightly/${{ steps.version.outputs.NEXT_VERSION }} | ||
yarn run version ${{steps.version.outputs.NEXT_VERSION}} --skip-prompt | ||
git push origin --tags | ||
|
@@ -94,10 +94,11 @@ jobs: | |
needs: [nightly] | ||
name: 📝 Comment on related issues and pull requests | ||
if: github.repository == 'remix-run/remix' && needs.nightly.outputs.NEXT_VERSION | ||
uses: remix-run/remix/.github/workflows/release-comments.yml@main | ||
uses: ./.github/workflows/release-comments.yml | ||
with: | ||
ref: "refs/tags/v${{ needs.nightly.outputs.NEXT_VERSION }}" | ||
packageVersionToFollow: "remix" | ||
package_version_to_follow: "remix" | ||
release_branch: "dev" | ||
|
||
deployments: | ||
needs: [nightly] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
!contains(github.ref, 'nightly') | ||
runs-on: ubuntu-latest | ||
outputs: | ||
publishedPackages: ${{ steps.changesets.outputs.publishedPackages }} | ||
published_packages: ${{ steps.changesets.outputs.published_packages }} | ||
published: ${{ steps.changesets.outputs.published }} | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
|
@@ -65,13 +65,13 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.NIGHTLY_PAT }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
findPackageVersion: | ||
find_package_version: | ||
name: 🦋 Find Package | ||
needs: [release] | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'remix-run/remix' && needs.release.outputs.published == 'true' | ||
outputs: | ||
packageVersion: ${{ steps.findPackageVersion.outputs.packageVersion }} | ||
package_version: ${{ steps.find_package_version.outputs.package_version }} | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -85,27 +85,28 @@ jobs: | |
node-version: 16 | ||
cache: "npm" | ||
|
||
- id: findPackageVersion | ||
- id: find_package_version | ||
run: | | ||
packageVersion=$(node ./scripts/release/find-release-from-changeset.js) | ||
echo "packageVersion=${packageVersion}" >> $GITHUB_OUTPUT | ||
package_version=$(node ./scripts/release/find-release-from-changeset.js) | ||
echo "package_version=${package_version}" >> $GITHUB_OUTPUT | ||
env: | ||
packageVersionToFollow: "remix" | ||
publishedPackages: ${{ needs.release.outputs.publishedPackages }} | ||
package_version_to_follow: "remix" | ||
published_packages: ${{ needs.release.outputs.published_packages }} | ||
|
||
comment: | ||
name: 📝 Comment on related issues and pull requests | ||
if: github.repository == 'remix-run/remix' && needs.findPackageVersion.outputs.packageVersion != '' | ||
needs: [release, findPackageVersion] | ||
if: github.repository == 'remix-run/remix' && needs.find_package_version.outputs.packageVersion != '' | ||
needs: [release, find_package_version] | ||
uses: ./.github/workflows/release-comments.yml | ||
with: | ||
ref: refs/tags/remix@${{ needs.findPackageVersion.outputs.packageVersion }} | ||
packageVersionToFollow: "remix" | ||
ref: refs/tags/remix@${{ needs.find_package_version.outputs.packageVersion }} | ||
package_version_to_follow: "remix" | ||
release_branch: ${{ github.ref_name }} | ||
|
||
deployments: | ||
name: 🚀 Deployment Tests | ||
if: github.repository == 'remix-run/remix' | ||
needs: [release, findPackageVersion] | ||
needs: [release, find_package_version] | ||
uses: ./.github/workflows/deployments.yml | ||
secrets: | ||
TEST_AWS_ACCESS_KEY_ID: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }} | ||
|
@@ -124,7 +125,7 @@ jobs: | |
stacks: | ||
name: 🥞 Remix Stacks Test | ||
if: github.repository == 'remix-run/remix' | ||
needs: [release, findPackageVersion] | ||
needs: [release, find_package_version] | ||
uses: ./.github/workflows/stacks.yml | ||
with: | ||
version: ${{ needs.findPackageVersion.outputs.packageVersion }} | ||
version: ${{ needs.find_package_version.outputs.package_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters