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
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dry-roses-nail.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/empty-paths-check.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/giant-bushes-sink.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-islands-care.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loose-cows-pump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-bulldogs-dress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/open-dodos-admire.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-suns-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/seven-seas-run.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-owls-visit.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-pears-tell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shy-impalas-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-houses-lay.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/smooth-bears-run.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-hotels-train.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-socks-find.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-peaches-burn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-planes-worry.md

This file was deleted.

44 changes: 1 addition & 43 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ env:
#
# See https://doc.rust-lang.org/rustc/platform-support/apple-darwin.html#os-version for more details
MACOSX_DEPLOYMENT_TARGET: 11.0
# This will become "true" if the latest commit (merged release PR) is either:
# - "Version Packages (#<number>)"
# - "Version Pacakges (canary/rc) (#<number>)"
# set from scripts/check-is-release.js
__NEW_RELEASE: 'false'

jobs:
deploy-target:
Expand Down Expand Up @@ -53,13 +48,7 @@ jobs:
# 'staging' for canary branch since that will eventually be published i.e. become the production build.
id: deploy-target
run: |
# TODO: Remove the new release check once the new release workflow is fully replaced.
RELEASE_CHECK=$(node ./scripts/check-is-release.js 2> /dev/null || :)
if [[ $RELEASE_CHECK == 'new-release' ]];
then
echo "__NEW_RELEASE=true" >> $GITHUB_ENV
echo "value=production" >> $GITHUB_OUTPUT
elif [[ $RELEASE_CHECK == v* ]];
if [[ $(node ./scripts/check-is-release.js 2> /dev/null || :) == v* ]];
then
echo "value=production" >> $GITHUB_OUTPUT
elif [ '${{ github.ref }}' == 'refs/heads/canary' ]
Expand Down Expand Up @@ -611,41 +600,10 @@ jobs:
- run: npm i -g npm@10.4.0 # need latest version for provenance (pinning to avoid bugs)
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: ./scripts/publish-native.js
# Legacy release process
- run: ./scripts/publish-release.js
if: ${{ env.__NEW_RELEASE == 'false' }}
env:
RELEASE_BOT_GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

# New release process
- name: Publish to NPM
id: changesets
# TODO: Change to IS_RELEASE condition when new release becomes stable.
if: ${{ env.__NEW_RELEASE == 'true' }}
uses: changesets/action@v1
with:
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}

- name: Send a Slack notification of the publish status
# TODO: Change to IS_RELEASE condition when new release becomes stable.
if: ${{ env.__NEW_RELEASE == 'true' && (steps.changesets.outputs.published == 'true' || steps.changesets.outputs.published == 'false') }}
run: pnpm tsx scripts/release/slack.ts
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
RELEASE_STATUS: ${{ steps.changesets.outputs.published }}
WORKFLOW_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
WORKFLOW_ACTOR: ${{ github.actor }}

- name: Upload npm log artifact
if: steps.changesets.outputs.published == 'true'
uses: actions/upload-artifact@v4
with:
name: npm-publish-logs
path: /home/runner/.npm/_logs/*

publish-turbopack-npm-packages:
# Matches the commit message written by turbopack/xtask/src/publish.rs:377
if: "${{(github.ref == 'refs/heads/canary') && startsWith(github.event.head_commit.message, 'chore: release turbopack npm packages')}}"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ jobs:
- name: check for release
id: is-release
run: |
RELEASE_CHECK=$(node ./scripts/check-is-release.js 2> /dev/null || :)
if [[ $RELEASE_CHECK == "new-release" || $RELEASE_CHECK == v* ]];
if [[ $(node ./scripts/check-is-release.js 2> /dev/null || :) == v* ]];
then
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
else
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/force_merge_canary_release_pr.yml

This file was deleted.

124 changes: 0 additions & 124 deletions .github/workflows/trigger_release_new.yml

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ packages/next/wasm/@next
packages/next/errors.json

.github/actions/next-stats-action/.work
.changeset/*.md

crates/**/tests/**/output*
crates/core/tests/loader/issue-32553/input.js
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"lerna": "lerna",
"dev": "turbo run dev --parallel",
"pack-next": "tsx scripts/pack-next.ts",
"ci:version": "tsx ./scripts/release/version-packages.ts",
"ci:publish": "tsx ./scripts/release/publish-npm.ts",
"test-types": "tsc",
"test-unit": "jest test/unit/ packages/next/ packages/font",
"test-dev-inner": "cross-env NEXT_TEST_MODE=dev pnpm testheadless",
Expand Down Expand Up @@ -122,8 +120,6 @@
"@babel/plugin-syntax-explicit-resource-management": "7.25.7",
"@babel/plugin-transform-object-rest-spread": "7.25.9",
"@babel/preset-react": "7.26.3",
"@changesets/changelog-github": "0.5.1",
"@changesets/cli": "2.29.3",
"@edge-runtime/jest-environment": "4.0.0",
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
Expand Down
Loading
Loading