Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into fix-false-positive-useHookAtTopLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
nissy-dev committed May 31, 2023
2 parents 684aa36 + 55e1613 commit fc432c6
Show file tree
Hide file tree
Showing 128 changed files with 2,856 additions and 4,576 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/bench_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ jobs:
critcmp main pr >> output
echo "\`\`\`" >> output
cat output
comment="$(cat output)"
comment="${comment//'%'/'%25'}"
comment="${comment//$'\n'/'%0A'}"
comment="${comment//$'\r'/'%0D'}"
echo "comment=$comment" >> $GITHUB_OUTPUT
echo "comment<<EOF" >> $GITHUB_OUTPUT
cat output >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Write a new comment
uses: peter-evans/create-or-update-comment@v1.4.5
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/bench_formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ jobs:
critcmp main pr >> output
echo "\`\`\`" >> output
cat output
comment="$(cat output)"
comment="${comment//'%'/'%25'}"
comment="${comment//$'\n'/'%0A'}"
comment="${comment//$'\r'/'%0D'}"
echo "comment=$comment" >> $GITHUB_OUTPUT
echo "comment<<EOF" >> $GITHUB_OUTPUT
cat output >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Write a new comment
uses: peter-evans/create-or-update-comment@v1.4.5
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/bench_parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ jobs:
critcmp main pr >> output
echo "\`\`\`" >> output
cat output
comment="$(cat output)"
comment="${comment//'%'/'%25'}"
comment="${comment//$'\n'/'%0A'}"
comment="${comment//$'\r'/'%0D'}"
echo "comment=$comment" >> $GITHUB_OUTPUT
echo "comment<<EOF" >> $GITHUB_OUTPUT
cat output >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Write a new comment
uses: peter-evans/create-or-update-comment@v1.4.5
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/parser_conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ jobs:
echo "## Parser conformance results on ${{ matrix.os }}" > output
cargo coverage compare ./base_results.json ./new_results.json --markdown >> output
cat output
comment="$(cat output)"
comment="${comment//'%'/'%25'}"
comment="${comment//$'\n'/'%0A'}"
comment="${comment//$'\r'/'%0D'}"
echo "comment=$comment" >> $GITHUB_OUTPUT
echo "comment<<EOF" >> $GITHUB_OUTPUT
cat output >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Get the PR number
if: github.event_name == 'pull_request'
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,30 +164,12 @@ jobs:
./npm/wasm-web
if-no-files-found: error

upload-schema:
name: Upload configuration JSON schema
runs-on: ubuntu-latest
needs: check
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
# Upload the JSON schema of the configuration
- name: Upload configuration JSON schema
uses: actions/upload-artifact@v3
with:
name: json-schema
path: ./npm/rome/configuration_schema.json
if-no-files-found: error

publish:
name: Publish
runs-on: ubuntu-latest
needs:
- build
- build-wasm
- upload-schema
environment: npm-publish
steps:
- uses: actions/checkout@v3
Expand All @@ -196,10 +178,6 @@ jobs:
uses: actions/download-artifact@v3
with:
name: cli
- name: Download configuration JSON schema
uses: actions/download-artifact@v3
with:
name: json-schema
- name: Download WASM artifacts
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -240,6 +218,5 @@ jobs:
prerelease: ${{ needs.build.outputs.prerelease == 'true' }}
files: |
rome-*
configuration_schema.json
fail_on_unmatched_files: true
generate_release_notes: true
22 changes: 19 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## [Unreleased]

### CLI
### Configuration
### Editors
### Formatter
### Linter
### Parser
### VSCode
### JavaScript APIs

## 12.1.3

### CLI

#### Other changes
Expand All @@ -16,17 +27,22 @@
- Fix an issue where all the `nursery` were enabled when the `"nursery": {}` object
was defined [#4479](https://github.com/rome/tools/issues/4479)

### Editors
### Formatter

### Linter

#### Other changes

- Fix false positive diagnostics ([#4483](https://github.com/rome/tools/issues/4483)) that [`useHookAtTopLevel`](https://docs.rome.tools/lint/rules/usehookattoplevel/) caused to returning call expressions of a hook.
- Revert [#4359](https://github.com/rome/tools/issues/4359)


### Parser
### VSCode
### JavaScript APIs

#### Other changes

- Revert [#4359](https://github.com/rome/tools/issues/4359)


## 12.1.2

Expand Down
Loading

0 comments on commit fc432c6

Please sign in to comment.