File tree Expand file tree Collapse file tree 8 files changed +8830
-3957
lines changed Expand file tree Collapse file tree 8 files changed +8830
-3957
lines changed Original file line number Diff line number Diff line change 1+ # Changesets
2+
3+ Hello and welcome! This folder has been automatically generated by ` @changesets/cli ` , a build tool that works
4+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5+ find the full documentation for it [ in our repository] ( https://github.com/changesets/changesets )
6+
7+ We have a quick list of common questions to get you started engaging with this project in
8+ [ our documentation] ( https://github.com/changesets/changesets/blob/main/docs/common-questions.md )
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" :
" https://unpkg.com/@changesets/[email protected] /schema.json" ,
3+ "changelog" : [
4+ " @changesets/changelog-github" ,
5+ { "repo" : " hashicorp/nextjs-bundle-analysis" }
6+ ],
7+ "commit" : false ,
8+ "linked" : [],
9+ "access" : " public" ,
10+ "baseBranch" : " main" ,
11+ "updateInternalDependencies" : " patch" ,
12+ "ignore" : [],
13+ "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH" : {
14+ "useCalculatedVersionForSnapshots" : true ,
15+ "onlyUpdatePeerDependentsWhenOutOfRange" : true
16+ }
17+ }
Original file line number Diff line number Diff line change 1+ ---
2+ ' nextjs-bundle-analysis ' : minor
3+ ---
4+
5+ Add app name to comment for uniqueness
Original file line number Diff line number Diff line change 1+ name : Canary Release
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+ - reopened
9+ - labeled
10+
11+ jobs :
12+ release-canary :
13+ uses : hashicorp/web-platform-packages/.github/workflows/canary-release.yml@8f20ba3ccb4ffe9a9bc0b14060af00929e6655f1
14+ secrets :
15+ PUBLISH_GITHUB_TOKEN : ${{ secrets.CHANGESETS_PAT }}
16+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const BUDGET_PERCENT_INCREASE_RED = options.budgetPercentIncreaseRed
2828const SHOW_DETAILS =
2929 options . showDetails === undefined ? true : options . showDetails
3030const BUILD_OUTPUT_DIRECTORY = getBuildOutputDirectory ( options )
31+ const PACKAGE_NAME = options . name
3132
3233// import the current and base branch bundle stats
3334const currentBundle = require ( path . join (
@@ -42,7 +43,7 @@ const baseBundle = require(path.join(
4243) )
4344
4445// kick it off
45- let output = `## 📦 Next.js Bundle Analysis
46+ let output = `## 📦 Next.js Bundle Analysis for ${ PACKAGE_NAME }
4647
4748This analysis was generated by the [next.js bundle analysis action](https://github.com/hashicorp/nextjs-bundle-analysis) 🤖
4849
@@ -191,7 +192,7 @@ if (!newPages.length && !changedPages.length && !globalBundleChanges) {
191192
192193// we add this tag so that our action can be able to easily and consistently find the
193194// right comment to edit as more commits are pushed.
194- output += ' <!-- __NEXTJS_BUNDLE -->'
195+ output += ` <!-- __NEXTJS_BUNDLE_ ${ PACKAGE_NAME } -->`
195196
196197// log the output, mostly for testing and debugging. this will show up in the
197198// github actions console.
You can’t perform that action at this time.
0 commit comments