Skip to content

Commit

Permalink
chore: change paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Aug 10, 2023
1 parent 89c6692 commit 3860179
Show file tree
Hide file tree
Showing 35 changed files with 235 additions and 414 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ crates/rome_js_analyze/src/assists/*.rs linguist-generated=true text=auto eol=lf
crates/rome_js_analyze/src/semantic_analyzers/*.rs linguist-generated=true text=auto eol=lf
crates/rome_js_analyze/src/registry.rs linguist-generated=true text=auto eol=lf
crates/rome_service/src/configuration/linter/rules.rs linguist-generated=true text=auto eol=lf
npm/backend-jsonrpc/src/workspace.ts linguist-generated=true text=auto eol=lf
packages/@biomedev/backend-jsonrpc/src/workspace.ts linguist-generated=true text=auto eol=lf
website/src/pages/lint/rules/**/*.md linguist-generated=true text=auto eol=lf
website/src/components/generated/.astro linguist-generated=true text=auto eol=lf
npm/rome/configuration_schema.json linguist-generated=true text=auto eol=lf
packages/@biomedev/biome/configuration_schema.json linguist-generated=true text=auto eol=lf
editors/vscode/configuration_schema.json linguist-generated=true text=auto eol=lf
crates/rome_service/src/configuration/parse/json/rules.rs linguist-generated=true text=auto eol=lf

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,17 @@ jobs:
version: 'latest'
- name: Build TypeScript code
run: |
pnpm --prefix npm/backend-jsonrpc i
pnpm --prefix npm/backend-jsonrpc run build
pnpm --prefix npm/js-api run build:wasm-bundler
pnpm --prefix npm/js-api run build:wasm-node
pnpm --prefix npm/js-api run build:wasm-web
pnpm --prefix npm/js-api i
pnpm --prefix npm/js-api run build
pnpm --prefix packages/@biomedev/backend-jsonrpc i
pnpm --prefix packages/@biomedev/backend-jsonrpc run build
pnpm --prefix packages/@biomedev/js-api run build:wasm-bundler
pnpm --prefix packages/@biomedev/js-api run build:wasm-node
pnpm --prefix packages/@biomedev/js-api run build:wasm-web
pnpm --prefix packages/@biomedev/js-api i
pnpm --prefix packages/@biomedev/js-api run build
- name: Run JS tests
run: |
pnpm --prefix npm/backend-jsonrpc test:ci
pnpm --prefix npm/js-api test:ci
pnpm --prefix packages/@biomedev/backend-jsonrpc test:ci
pnpm --prefix packages/@biomedev/js-api test:ci
documentation:
name: Documentation
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
paths: # Only run when changes are made to js code
- 'website/**'
- 'editors/**'
- 'crates/**'
- 'npm/js-api/**'
# - 'crates/**'
- 'packages/@biomedev/js-api/**'

env:
RUST_LOG: info
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Install toolchain
uses: moonrepo/setup-rust@v0
- name: Build WASM module for the web
run: wasm-pack build --out-dir ../../npm/wasm-web --target web --scope rometools crates/rome_wasm
run: wasm-pack build --out-dir ../../packages/@biomedev/wasm-web --target web --scope biomedev crates/rome_wasm
- name: Install libraries
working-directory: website
run: pnpm i
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
paths:
- npm/rome/package.json
- packages/@biomedev/biome/package.json

jobs:
check:
Expand All @@ -32,7 +32,7 @@ jobs:
id: version
with:
diff-search: true
file-name: npm/rome/package.json
file-name: packages/@biomedev/biome/package.json

- name: Set version name
if: steps.version.outputs.changed == 'true'
Expand All @@ -44,7 +44,7 @@ jobs:
if: env.nightly == 'true'
run: |
echo "prerelease=true" >> $GITHUB_ENV
echo "version=$(node npm/rome/scripts/update-nightly-version.mjs)" >> $GITHUB_ENV
echo "version=$(node packages/@biomedev/biome/scripts/update-nightly-version.mjs)" >> $GITHUB_ENV
build:
strategy:
Expand Down Expand Up @@ -148,20 +148,20 @@ jobs:
uses: jetli/[email protected]

- name: Build WASM module for bundlers
run: wasm-pack build --out-dir ../../npm/wasm-bundler --target bundler --release --scope rometools crates/rome_wasm
run: wasm-pack build --out-dir ../../packages/@biomedev/wasm-bundler --target bundler --release --scope biomedev crates/rome_wasm
- name: Build WASM module for node.js
run: wasm-pack build --out-dir ../../npm/wasm-nodejs --target nodejs --release --scope rometools crates/rome_wasm
run: wasm-pack build --out-dir ../../packages/@biomedev/wasm-nodejs --target nodejs --release --scope biomedev crates/rome_wasm
- name: Build WASM module for the web
run: wasm-pack build --out-dir ../../npm/wasm-web --target web --release --scope rometools crates/rome_wasm
run: wasm-pack build --out-dir ../../packages/@biomedev/wasm-web --target web --release --scope biomedev crates/rome_wasm

- name: Upload WASM artifact
uses: actions/upload-artifact@v3
with:
name: wasm
path: |
./npm/wasm-bundler
./npm/wasm-nodejs
./npm/wasm-web
./packages/@biomedev/biome/wasm-bundler
./packages/@biomedev/biome/wasm-nodejs
./packages/@biomedev/biome/wasm-web
if-no-files-found: error

publish:
Expand Down Expand Up @@ -192,17 +192,17 @@ jobs:

- name: Set release infos
if: needs.build.outputs.prerelease == 'true'
run: node npm/rome/scripts/update-nightly-version.mjs
run: node packages/@biomedev/biome/scripts/update-nightly-version.mjs
- name: Generate npm packages
run: node npm/rome/scripts/generate-packages.mjs
run: node packages/@biomedev/biome/scripts/generate-packages.mjs

- name: Publish npm packages as latest
run: for package in npm/*; do if [ $package != "npm/js-api" ]; then npm publish $package --tag latest --access public; fi; done
run: for package in packages/@biomedev/*; do if [ $package != "packages/@biomedev/js-api" ]; then npm publish $package --tag latest --access public; fi; done
if: needs.build.outputs.prerelease != 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish npm packages as nightly
run: for package in npm/*; do if [ $package != "npm/js-api" ]; then npm publish $package --tag nightly --access public; fi; done
run: for package in packages/@biomedev/*; do if [ $package != "packages/@biomedev/js-api" ]; then npm publish $package --tag nightly --access public; fi; done
if: needs.build.outputs.prerelease == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -217,6 +217,6 @@ jobs:
draft: false
prerelease: ${{ needs.build.outputs.prerelease == 'true' }}
files: |
rome-*
biome-*
fail_on_unmatched_files: true
generate_release_notes: true
Loading

0 comments on commit 3860179

Please sign in to comment.