From 6d19357534cfe8178331fcc0e3abb6d73bcdc1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Fri, 18 Oct 2024 19:20:36 +0800 Subject: [PATCH] feat: update README --- .changeset/config.json | 11 ++++++++ .../workflows/publish-swc-plugin-canyon.yml | 21 ++++++++++----- Cargo.toml | 2 +- plugins/swc-plugin-canyon/src/Cargo.toml | 27 ------------------- 4 files changed, 27 insertions(+), 34 deletions(-) create mode 100644 .changeset/config.json delete mode 100644 plugins/swc-plugin-canyon/src/Cargo.toml diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 00000000..5e66d5db --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": true, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/publish-swc-plugin-canyon.yml b/.github/workflows/publish-swc-plugin-canyon.yml index ff0bc97e..4a071c38 100644 --- a/.github/workflows/publish-swc-plugin-canyon.yml +++ b/.github/workflows/publish-swc-plugin-canyon.yml @@ -20,6 +20,15 @@ jobs: with: submodules: true + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: 20 + + - run: | + corepack enable + pnpm i + - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -30,11 +39,11 @@ jobs: run: | rustup target add wasm32-wasi - - name: Setup node - uses: pnpm/action-setup@v4 + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 with: - version: 9 - - run: | - pnpm --filter=swc-plugin-canyon publish -f --no-git-checks --access=public + publish: pnpm --filter=vite-plugin-canyon publish -f --no-git-checks --access=public --filter env: - NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 4f14823d..216e233b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = ["plugins/swc-plugin-canyon/*"] +members = ["plugins/*"] resolver = "2" diff --git a/plugins/swc-plugin-canyon/src/Cargo.toml b/plugins/swc-plugin-canyon/src/Cargo.toml deleted file mode 100644 index 4ec22d8c..00000000 --- a/plugins/swc-plugin-canyon/src/Cargo.toml +++ /dev/null @@ -1,27 +0,0 @@ -[package] - -description = "Canyon plugin for debugging." - - -authors = { workspace = true } -edition = { workspace = true } -homepage = { workspace = true } -license = { workspace = true } -name = "swc_plugin_canyon" -publish = false -repository = { workspace = true } -rust-version = { workspace = true } -version = "0.18.4" - - -[lib] -crate-type = ["cdylib", "rlib"] - -[dependencies] -swc_common = { workspace = true, features = ["concurrent"] } -swc_core = { workspace = true, features = ["ecma_plugin_transform"] } -swc_ecma_ast = { workspace = true } -swc_ecma_utils = { workspace = true } -swc_ecma_visit = { workspace = true } -swc_plugin_macro = { workspace = true } -tracing = { workspace = true, features = ["release_max_level_off"] }