-
-
Notifications
You must be signed in to change notification settings - Fork 388
feat: add publish workflow #3157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rtritto
wants to merge
50
commits into
vikejs:main
Choose a base branch
from
rtritto:publish
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 47 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
411fad6
feat: add publish workflow
rtritto 7a6480d
read changelog from CHANGELOG.md
rtritto 323941e
add trigger workflow on CHANGELOG.md push
rtritto 4793d5e
add missing fs import
rtritto 66fa136
add install pnpm
rtritto bc02323
add update release
rtritto f973f0f
remove useless code
rtritto c9f1bf9
add TODO/ai
brillout 74cf91d
[AI] Extract publish release script
brillout b38ee47
[AI] Fix publish script TS compatibility
brillout c3339a5
add TODO/ai
brillout 066bca6
[AI] Implement publish workflow TODOs
brillout 5a95da4
minor refactor
brillout 233ae0f
add TODO/ai
brillout f370398
[AI] Rename GitHub release sync workflow
brillout da2575f
wip
brillout bf27ee1
Merge remote-tracking branch 'origin/brillout/dev' into pr/3157-feat_…
brillout 8c98991
[AI] Skip CI fixture unit spec
brillout 6485dc5
[AI] Exclude fixture dirs from Vitest
brillout f2fd4d3
minor refactor
brillout ef831ec
[AI] Fix workflow Node typings
brillout 1b19b1a
[AI] Reuse package Node typings
brillout b5c8494
[AI] Add Node typings to workflow packages
brillout 41fdd12
minor refactor
brillout 748ca43
minor refactor
brillout e48402d
[AI] Add local GitHub env fallbacks
brillout ed8d7e0
[AI] Add local release sync hint
brillout db1ae8f
[AI] Add local release sync script
brillout b706582
Revert "[AI] Add local release sync script"
brillout ac691e5
add publish release without release
rtritto 1c7a74c
add timeout
rtritto 962e801
allow single # and semantic x.y.z in regex
rtritto 8f7f8cd
opus
brillout f3ab531
opus
brillout f466c29
opus
brillout 8883125
opus
brillout aedfe6f
wip
brillout 281e430
Merge remote-tracking branch 'origin/main' into pr/3157-feat_add_publ…
brillout c036577
comment
brillout b6381c7
minor refactor
brillout 0c504c5
opus
brillout 4a1b300
wip
brillout 7a450f5
wip
brillout 7c7873d
wip
brillout ae07225
wip
brillout 8215ff1
wip
brillout 57141a8
try
brillout 08c10a5
Revert "try"
brillout afe332c
wip
brillout 7614cef
wip
brillout File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| { | ||
| "dependencies": { | ||
| "devDependencies": { | ||
| "@types/node": "^24.10.2", | ||
| "typescript": "^5.9.3" | ||
| } | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| "checkJs": true, | ||
| "esModuleInterop": true, | ||
| "module": "ESNext", | ||
| "types": ["node"], | ||
| "skipLibCheck": true | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Publish new Release | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'CHANGELOG.md' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish_package: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| environment: release | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Install Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| version: 1.2.19 | ||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v5 | ||
| with: | ||
| version: 10 | ||
| - name: Install Node | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| registry-url: 'https://registry.npmjs.org' | ||
| - name: Install modules | ||
| run: pnpm install --filter ./packages/vike | ||
| - name: Create NPM release | ||
| working-directory: ./packages/vike | ||
| run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| - name: Create GitHub release | ||
| run: bun ./.github/workflows/sync-github-releases/sync-releases.ts | ||
| env: | ||
| GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
31 changes: 31 additions & 0 deletions
31
.github/workflows/sync-github-releases/fixtures/changelog-telefunc.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| ## [0.1.2](https://github.com/brillout/telefunc/compare/v0.1.1...v0.1.2) (2022-01-25) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * improve TelefunctionError type ([41a572a](https://github.com/brillout/telefunc/commit/41a572a)) | ||
| * make error handling consistent between remote call and SSR call ([10edb6a](https://github.com/brillout/telefunc/commit/10edb6a)) | ||
|
|
||
|
|
||
|
|
||
| ## [0.1.1](https://github.com/brillout/telefunc/compare/0.1.0...0.1.1) (2022-01-24) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * enable isomorphic imports by refactoring source code file structure and adopting new TS/ESM/CJS strategy ([d0c182d](https://github.com/brillout/telefunc/commit/d0c182d)) | ||
| * warn user upon incorrect usage of isomorphic imports ([72700ca](https://github.com/brillout/telefunc/commit/72700ca)) | ||
|
|
||
|
|
||
|
|
||
| # Telefunc (new 2021/2022 version) `0.1.0` | ||
|
|
||
| Initial release. | ||
|
|
||
| # Telefunc (old 2020 version) `0.0.26` | ||
|
|
||
| See [github.com/brillout/telefunc-old](https://github.com/brillout/telefunc-old). | ||
|
|
||
| # Wildcard API `v0.5.3` | ||
|
|
||
| See [github.com/brillout/wildcard-api](https://github.com/brillout/wildcard-api). |
39 changes: 39 additions & 0 deletions
39
.github/workflows/sync-github-releases/fixtures/changelog-vike-react.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| ## [0.1.6](https://github.com/vikejs/vike-react/compare/v0.1.5...v0.1.6) (2023-06-24) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - fix 'vike-react' type ([9fe6825](https://github.com/vikejs/vike-react/commit/9fe6825)) | ||
| - keep concrete types of vike-react config ([07a811f](https://github.com/vikejs/vike-react/commit/07a811f)) | ||
| - simplify type `Config` ([2fe1dcc](https://github.com/vikejs/vike-react/commit/2fe1dcc)) | ||
|
|
||
| ## [0.1.5](https://github.com/vikejs/vike-react/compare/v0.1.4...v0.1.5) (2023-05-26) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - use latest vps version ([f35836e](https://github.com/vikejs/vike-react/commit/f35836e)) | ||
|
|
||
| ## [0.1.4](https://github.com/vikejs/vike-react/compare/v0.1.3...v0.1.4) (2023-05-26) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - use latest vps commit ([d08e03d](https://github.com/vikejs/vike-react/commit/d08e03d)) | ||
|
|
||
| ## [0.1.3](https://github.com/vikejs/vike-react/compare/v0.1.2...v0.1.3) (2023-05-24) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - fix type pointer ([c7841f2](https://github.com/vikejs/vike-react/commit/c7841f2)) | ||
|
|
||
| ## [0.1.2](https://github.com/vikejs/vike-react/compare/v0.1.1...v0.1.2) (2023-05-24) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - fix ESM import paths - 2 ([5c881e5](https://github.com/vikejs/vike-react/commit/5c881e5)) | ||
|
|
||
| ## [0.1.1](https://github.com/vikejs/vike-react/compare/v0.1.0...v0.1.1) (2023-05-24) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - fix ESM import paths ([60c4423](https://github.com/vikejs/vike-react/commit/60c4423)) | ||
|
|
||
| ## 0.1.0 (2023-05-24) |
58 changes: 58 additions & 0 deletions
58
.github/workflows/sync-github-releases/fixtures/changelog-vike-solid.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| ## [0.7.2](https://github.com/vikejs/vike-solid/compare/v0.7.1...v0.7.2) (2024-08-17) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * enable useConfig() after hydration ([#179](https://github.com/vikejs/vike-solid/issues/179)) ([0d28905](https://github.com/vikejs/vike-solid/commit/0d28905)) | ||
|
|
||
|
|
||
|
|
||
| ## [0.7.1](https://github.com/vikejs/vike-solid/compare/v0.7.0...v0.7.1) (2024-08-12) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * don't unnecessarily pass useConfig() values to client-side ([613bce3](https://github.com/vikejs/vike-solid/commit/613bce3)) | ||
|
|
||
|
|
||
| ### Features | ||
|
|
||
| * new [components `<Head>` and `<Config>`](https://vike.dev/useConfig#config-head) ([#104](https://github.com/vikejs/vike-solid/issues/104)) ([ed1c070](https://github.com/vikejs/vike-solid/commit/ed1c070)) | ||
|
|
||
|
|
||
|
|
||
| # [0.7.0](https://github.com/vikejs/vike-solid/compare/v0.6.2...v0.7.0) (2024-08-06) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * avoid the default of title/lang setting to override Head setting ([1f91f16](https://github.com/vikejs/vike-solid/commit/1f91f16)) | ||
| * export Vike config only at /config ([d66c678](https://github.com/vikejs/vike-solid/commit/d66c678)) | ||
|
|
||
|
|
||
| ### Features | ||
|
|
||
| * [useConfig()](https://vike.dev/useConfig) ([88496ed](https://github.com/vikejs/vike-solid/commit/88496ed)) | ||
| * new hook [`onAfterRenderClient`](https://vike.dev/onAfterRenderClient) ([149f555](https://github.com/vikejs/vike-solid/commit/149f555)) | ||
|
|
||
|
|
||
| ### BREAKING CHANGES | ||
|
|
||
| * component `<ClientOnly>` removed: use `clientOnly()` helper instead https://vike.dev/clientOnly | ||
| * Update to `vike@0.4.191` or above. | ||
|
|
||
|
|
||
|
|
||
| ## [0.6.2](https://github.com/vikejs/vike-solid/compare/v0.6.1...v0.6.2) (2024-06-25) | ||
|
|
||
|
|
||
| ### Features | ||
|
|
||
| * Add streaming support for Web Stream ([69ac3cd](https://github.com/vikejs/vike-solid/commit/69ac3cd)) | ||
|
|
||
|
|
||
|
|
||
| ## [0.6.1](https://github.com/vikejs/vike-solid/compare/v0.6.0...v0.6.1) (2024-06-22) | ||
|
|
||
|
|
||
| **For previous versions, see [MIGRATION.md](https://github.com/vikejs/vike-solid/blob/main/MIGRATION.md).** |
33 changes: 33 additions & 0 deletions
33
.github/workflows/sync-github-releases/fixtures/changelog-vike-vue.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| ## [0.2.3](https://github.com/vikejs/vike-vue/compare/v0.2.2...v0.2.3) (2023-09-08) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - Fix `__name is not defined` ([11417ca](https://github.com/vikejs/vike-vue/commit/11417ca)) | ||
|
|
||
| ## [0.2.2](https://github.com/vikejs/vike-vue/compare/v0.2.1...v0.2.2) (2023-09-05) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - Fix 'Error: Cannot find module' ([6b35d81](https://github.com/vikejs/vike-vue/commit/6b35d81)) | ||
|
|
||
| ## [0.2.1](https://github.com/vikejs/vike-vue/compare/v0.2.0...v0.2.1) (2023-08-29) | ||
|
|
||
| - Fix peer dependency on `vite-plugin-ssr`. | ||
|
|
||
| ## [0.2.0](https://github.com/vikejs/vike-vue/compare/v0.1.1...v0.2.0) (2023-08-28) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - Actually support `config.meta.ssr = false` ([3ee182a](https://github.com/vikejs/vike-vue/commit/3ee182a)) | ||
|
|
||
| ### Features | ||
|
|
||
| - Add `Head` config option ([75cd700](https://github.com/vikejs/vike-vue/commit/75cd700)) | ||
|
|
||
| ## [0.1.1](https://github.com/vikejs/vike-vue/compare/v0.1.0...v0.1.1) (2023-08-20) | ||
|
|
||
| - Add README content to [npm package](https://www.npmjs.com/package/vike-vue) | ||
|
|
||
| ## 0.1.0 (2023-08-20) | ||
|
|
||
| - Initial version |
59 changes: 59 additions & 0 deletions
59
.github/workflows/sync-github-releases/fixtures/changelog-vike.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # [0.1.0-beta.10](https://github.com/brillout/vite-plugin-ssr/compare/v0.1.0-beta.8...v0.1.0-beta.10) (2021-03-05) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * convert windows path to posix for micromatch ([cc9c405](https://github.com/brillout/vite-plugin-ssr/commit/cc9c405)), closes [#4](https://github.com/brillout/vite-plugin-ssr/issues/4) | ||
| * don't try to inject dynamic import polyfill ([fdffd37](https://github.com/brillout/vite-plugin-ssr/commit/fdffd37)) | ||
| * **boilerplates:** remove duplicated file ([4421aa6](https://github.com/brillout/vite-plugin-ssr/commit/4421aa6)) | ||
|
|
||
|
|
||
| ### Features | ||
|
|
||
| * allow render hook to return an object instead of HTML ([a649eaf](https://github.com/brillout/vite-plugin-ssr/commit/a649eaf)) | ||
| * support _500.page.js and improve error handling ([d492b9c](https://github.com/brillout/vite-plugin-ssr/commit/d492b9c)) | ||
| * support `html` tag composition ([9a57006](https://github.com/brillout/vite-plugin-ssr/commit/9a57006)) | ||
|
|
||
|
|
||
|
|
||
| # [0.1.0-beta.9](https://github.com/brillout/vite-plugin-ssr/compare/v0.1.0-beta.8...v0.1.0-beta.9) (2021-03-01) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * Fix released build | ||
|
|
||
|
|
||
|
|
||
| # [0.1.0-beta.8](https://github.com/brillout/vite-plugin-ssr/compare/v0.1.0-beta.7...v0.1.0-beta.8) (2021-03-01) | ||
|
|
||
|
|
||
| ### Bug Fixes | ||
|
|
||
| * re-export default ([cd43e6e](https://github.com/brillout/vite-plugin-ssr/commit/cd43e6e)) | ||
| * use `in` operator only on objects ([819dfe1](https://github.com/brillout/vite-plugin-ssr/commit/819dfe1)) | ||
|
|
||
|
|
||
| ### Features | ||
|
|
||
| * remove html.sanitize and make sanitized automatic ([95d145c](https://github.com/brillout/vite-plugin-ssr/commit/95d145c)) | ||
|
|
||
|
|
||
| ### BREAKING CHANGES | ||
|
|
||
| * Removed `html.sanitize()`; simply directly insert the | ||
| string and vite-plugin-ssr will automatically sanitize it | ||
|
|
||
|
|
||
|
|
||
| # [0.1.0-beta.7](https://github.com/brillout/vite-plugin-ssr/compare/v0.1.0-beta.6...v0.1.0-beta.7) (2021-02-28) | ||
|
|
||
|
|
||
| ### Features | ||
|
|
||
| * Pass `Page` to addContextProps. ([2512ee3](https://github.com/brillout/vite-plugin-ssr/commit/2512ee3)) | ||
|
|
||
|
|
||
|
|
||
| # [0.1.0-beta.6](https://github.com/brillout/vite-plugin-ssr/tree/963afbafa5697d7745b6803bf1475b4aad7559c2) (2021-02-22) | ||
|
|
||
| Initial public release |
This file contains hidden or 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 | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,10 @@ | ||||||
| { | ||||||
| "scripts": { | ||||||
| "run": "bun ./sync-releases.ts ", | ||||||
|
||||||
| "run": "bun ./sync-releases.ts ", | |
| "run": "bun ./sync-releases.ts", |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow runs
npm publishforpackages/vike, but the repo doesn't contain a committeddist/directory and there is noprepublish/preparescript inpackages/vike/package.jsonto build it automatically. Add an explicit build step (e.g. run the package build script) before publishing to avoid publishing a broken package missingdist/*exports.