-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
106 changed files
with
10,290 additions
and
533 deletions.
There are no files selected for viewing
This file contains 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,7 @@ | ||
--- | ||
swc_core: patch | ||
swc_common: patch | ||
swc_plugin_runner: patch | ||
--- | ||
|
||
refactor(common): Simplify `SyntaxContext` and `Mark` |
This file contains 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,6 @@ | ||
--- | ||
swc_ecma_minifier: patch | ||
swc_core: patch | ||
--- | ||
|
||
fix(es/minifier): Force rename synthesized identifiers |
This file contains 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,9 @@ | ||
--- | ||
swc_css_visit: patch | ||
swc_html_visit: patch | ||
swc_xml_visit: patch | ||
swc_ecma_visit: patch | ||
swc_core: patch | ||
--- | ||
|
||
feat(visit): Add experimental traverse APIs |
This file contains 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,6 @@ | ||
--- | ||
swc_ecma_usage_analyzer: patch | ||
swc_core: patch | ||
--- | ||
|
||
fix(es/minifier): Mark LHS of for-in/of as update |
This file contains 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,44 @@ | ||
name: "Git tag release" | ||
description: "Tags a release" | ||
inputs: | ||
version: | ||
description: "The version" | ||
required: true | ||
ssh-private-key: | ||
description: "The SSH private key" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: "main" | ||
|
||
- uses: ./.github/actions/setup-node | ||
|
||
- name: Install git-cliff | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install cargo-edit | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: "Setup jq" | ||
uses: dcarbone/install-jq-action@v2 | ||
with: | ||
version: "1.7" | ||
force: true | ||
|
||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ inputs.ssh-private-key }} | ||
|
||
- name: Create git tag commit | ||
shell: bash | ||
run: | | ||
./scripts/publish.sh ${{ inputs.version }} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -47,27 +47,33 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
if: github.event_name == 'workflow_dispatch' | ||
with: | ||
profile: minimal | ||
|
||
- name: Install cargo-edit | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install cargo-edit | ||
- name: Install cargo-mono | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- run: cargo bump | ||
if: github.event_name == 'workflow_dispatch' | ||
continue-on-error: true | ||
|
||
- uses: webfactory/[email protected] | ||
if: github.event_name == 'workflow_dispatch' | ||
with: | ||
ssh-private-key: ${{ secrets.SWC_BOT_SSH }} | ||
|
||
- name: Push bump commit | ||
if: github.event_name == 'workflow_dispatch' | ||
run: | | ||
git push [email protected]:swc-project/swc.git --no-verify | ||
|
@@ -80,26 +86,30 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/setup-node | ||
if: github.event_name == 'workflow_dispatch' | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
if: github.event_name == 'workflow_dispatch' | ||
with: | ||
profile: minimal | ||
|
||
- name: Install cargo-edit | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install cargo-edit | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Update constant of swc_core | ||
if: github.event_name == 'workflow_dispatch' | ||
run: npx ts-node .github/bot/src/cargo/update-constants.ts | ||
|
||
- name: Publish crates | ||
# Skip on pull requests | ||
if: github.event_name == 'workflow_dispatch' | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
|
@@ -120,22 +130,43 @@ jobs: | |
run: | | ||
npx ts-node .github/bot/src/nightly-version.ts ${{ github.event.inputs.version }} >> $GITHUB_OUTPUT | ||
git-tag-nightly: | ||
name: "Git tag nightly" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- publish-cargo | ||
- determine-nightly-version | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/tag-git-release | ||
with: | ||
version: ${{ needs.determine-nightly-version.outputs.version }} | ||
ssh-private-key: ${{ secrets.SWC_BOT_SSH }} | ||
|
||
publish-npm-nightly: | ||
name: "Publish ${{ needs.determine-nightly-version.outputs.version }}" | ||
name: "Publish ${{ matrix.package }}@${{ needs.determine-nightly-version.outputs.version }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: | ||
- core | ||
- html | ||
needs: | ||
- git-tag-nightly | ||
- publish-cargo | ||
- determine-nightly-version | ||
uses: ./.github/workflows/publish-npm-package.yml | ||
secrets: inherit | ||
with: | ||
package: "core" | ||
package: ${{ matrix.package }} | ||
version: ${{ needs.determine-nightly-version.outputs.version }} | ||
buildCli: true | ||
skipBuild: ${{ inputs.skipBuild || false }} | ||
skipPublishing: false | ||
skipPublishing: ${{ github.event_name == 'pull_request' }} | ||
|
||
run-ecosystem-ci-with-nightly: | ||
name: "Test nightly using ecosystem CI" | ||
|
||
needs: | ||
- determine-nightly-version | ||
- publish-npm-nightly | ||
|
@@ -146,18 +177,37 @@ jobs: | |
suites: '["_"]' | ||
allowBreakingWasm: ${{ inputs.allowBreakingWasm || false }} | ||
|
||
git-tag-stable: | ||
name: "Git tag stable" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- publish-cargo | ||
- run-ecosystem-ci-with-nightly | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/tag-git-release | ||
with: | ||
version: ${{ inputs.version }} | ||
ssh-private-key: ${{ secrets.SWC_BOT_SSH }} | ||
|
||
publish-npm-stable: | ||
name: "Publish ${{ inputs.version || 'stable' }} to npm" | ||
name: "Publish ${{ matrix.package }}}}@${{ inputs.version || 'stable' }} to npm" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: | ||
- core | ||
- html | ||
needs: | ||
- publish-cargo | ||
- run-ecosystem-ci-with-nightly | ||
- git-tag-stable | ||
|
||
uses: ./.github/workflows/publish-npm-package.yml | ||
secrets: inherit | ||
with: | ||
package: "core" | ||
package: ${{ matrix.package }} | ||
version: ${{ inputs.version }} | ||
buildCli: true | ||
skipBuild: ${{ inputs.skipBuild || inputs.onlyNightly || false }} | ||
# Skip on pull requests | ||
skipPublishing: ${{ inputs.onlyNightly }} | ||
skipPublishing: ${{ github.event_name == 'pull_request' }} |
This file contains 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
Oops, something went wrong.