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
5 changes: 5 additions & 0 deletions .changepacks/changepack_log_gfbYKEAW0SjV8Y_4ve5rm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"changes": { "packages/next-plugin/package.json": "Patch" },
"note": "Fix workspace issue",
"date": "2025-12-30T11:25:19.439193400Z"
}
241 changes: 116 additions & 125 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,125 +1,116 @@
name: Publish Package to npm

on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: write-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo tarpaulin and fmt
run: |
cargo install cargo-tarpaulin
rustup component add rustfmt clippy
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- uses: jetli/[email protected]
with:
version: 'latest'
- name: Install Node.js
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version: 22
cache: 'pnpm'
- run: pnpm i
- run: pnpm build
- name: Benchmark
run: pnpm benchmark

publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo tarpaulin and fmt
run: |
cargo install cargo-tarpaulin
rustup component add rustfmt clippy
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- uses: jetli/[email protected]
with:
version: 'latest'
- name: Install Node.js
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version: 22
cache: 'pnpm'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm i
- run: pnpm build
- run: |
pnpm lint
# rust coverage issue
echo 'max_width = 100000' > .rustfmt.toml
echo 'tab_spaces = 4' >> .rustfmt.toml
echo 'newline_style = "Unix"' >> .rustfmt.toml
echo 'fn_call_width = 100000' >> .rustfmt.toml
echo 'fn_params_layout = "Compressed"' >> .rustfmt.toml
echo 'chain_width = 100000' >> .rustfmt.toml
echo 'merge_derives = true' >> .rustfmt.toml
echo 'use_small_heuristics = "Default"' >> .rustfmt.toml
cargo fmt
- run: pnpm test
- name: Format Rollback
run: |
rm -rf .rustfmt.toml
cargo fmt
- name: Build Landing
run: |
pnpm -F components build-storybook
mv ./packages/components/storybook-static ./apps/landing/public/storybook
pnpm -F landing build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./apps/landing/out
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- uses: actions/deploy-pages@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

- uses: changepacks/action@main
id: changepacks

- name: Publish to npm
run: |
echo '${{ steps.changepacks.outputs.changepacks }}' | jq -r '.[]' | while read package; do
package_dir=$(dirname "$package")
echo "Publishing package: $package_dir"
cd "$package_dir"
pnpm publish --access public --no-git-checks
cd "${{ github.workspace }}"
done
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: steps.changepacks.outputs.changepacks != ''
name: Publish Package to npm

on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: write-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo tarpaulin and fmt
run: |
cargo install cargo-tarpaulin
rustup component add rustfmt clippy
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- uses: jetli/[email protected]
with:
version: 'latest'
- name: Install Node.js
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version: 22
cache: 'pnpm'
- run: pnpm i
- run: pnpm build
- name: Benchmark
run: pnpm benchmark

publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo tarpaulin and fmt
run: |
cargo install cargo-tarpaulin
rustup component add rustfmt clippy
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- uses: jetli/[email protected]
with:
version: 'latest'
- name: Install Node.js
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version: 22
cache: 'pnpm'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm i
- run: pnpm build
- run: |
pnpm lint
# rust coverage issue
echo 'max_width = 100000' > .rustfmt.toml
echo 'tab_spaces = 4' >> .rustfmt.toml
echo 'newline_style = "Unix"' >> .rustfmt.toml
echo 'fn_call_width = 100000' >> .rustfmt.toml
echo 'fn_params_layout = "Compressed"' >> .rustfmt.toml
echo 'chain_width = 100000' >> .rustfmt.toml
echo 'merge_derives = true' >> .rustfmt.toml
echo 'use_small_heuristics = "Default"' >> .rustfmt.toml
cargo fmt
- run: pnpm test
- name: Format Rollback
run: |
rm -rf .rustfmt.toml
cargo fmt
- name: Build Landing
run: |
pnpm -F components build-storybook
mv ./packages/components/storybook-static ./apps/landing/public/storybook
pnpm -F landing build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./apps/landing/out
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- uses: actions/deploy-pages@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

- uses: changepacks/action@main
id: changepacks
with:
publish: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/next-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@devup-ui/webpack-plugin": "workspace:^",
"next": "^16.1",
"@devup-ui/wasm": "workspace:^",
"glob": "^13.0"
"tinyglobby": "^0.2"
},
"devDependencies": {
"vite": "^7.3",
Expand Down
Loading