Skip to content

Commit

Permalink
chore: use the correct org
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Aug 11, 2023
1 parent 3294609 commit 21b9981
Show file tree
Hide file tree
Showing 13 changed files with 196 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
shared-key: "cli-release"

- name: Run Rome Format
run: cargo biome-cli ci editors website npm/js-api
run: cargo biome-cli ci editors website packages/@biomejs/js-api
type-check:
name: Type-check JS Files
runs-on: ubuntu-latest
Expand Down
318 changes: 159 additions & 159 deletions .github/workflows/release_js_api.yml
Original file line number Diff line number Diff line change
@@ -1,163 +1,163 @@
#name: Release JavaScript API
#on:
# workflow_dispatch:
# schedule:
# - cron: '0 0 * * 2-6'
# push:
name: Release JavaScript API
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 2-6'
push:
# branches:
# - main
# paths:
# - npm/js-api/package.json
#
#jobs:
# check:
# name: Check version
# runs-on: ubuntu-latest
# outputs:
# version: ${{ env.version }}
# prerelease: ${{ env.prerelease }}
# nightly: ${{ env.nightly }}
# version_changed: ${{ steps.version.outputs.changed }}
# steps:
# - uses: actions/checkout@v3
#
# - name: Check nightly status
# id: nightly
# if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
# run: echo "nightly=true" >> $GITHUB_ENV
#
# - name: Check version changes
# uses: EndBug/version-check@v1
# if: env.nightly != 'true'
# id: version
# with:
# diff-search: true
# file-name: npm/js-api/package.json
#
# - name: Set version name
# run: echo "version=${{ steps.version.outputs.version }}" >> $GITHUB_ENV
#
# - name: Check prerelease status
# id: prerelease
# if: env.nightly == 'true'
# run: echo "prerelease=true" >> $GITHUB_ENV
#
# - name: Check version status
# if: steps.version.outputs.changed == 'true'
# run: 'echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"'
#
# build:
# name: Package JavaScript APIs
# runs-on: ubuntu-latest
#
# needs: check
# if: needs.check.outputs.version_changed == 'true' || needs.check.outputs.nightly == 'true'
# outputs:
# version: ${{ env.version }}
# prerelease: ${{ env.prerelease }}
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# fetch-depth: 1
#
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18
#
# - name: Install wasm-pack
# uses: jetli/[email protected]
# with:
# version: 'latest'
#
# - name: Cache pnpm modules
# uses: actions/cache@v3
# with:
# path: ~/.pnpm-store
# key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-
# - uses: pnpm/[email protected]
# with:
# version: 8
#
# - name: Set release infos
# if: needs.check.outputs.prerelease == 'true'
# run: |
# echo "prerelease=true" >> $GITHUB_ENV
# node npm/js-api/scripts/update-nightly-version.mjs >> $GITHUB_ENV
# - name: Set release infos
# if: needs.check.outputs.prerelease != 'true'
# run: |
# echo "prerelease=false" >> $GITHUB_ENV
# echo "version=${{ needs.check.outputs.version }}" >> $GITHUB_ENV
#
# - name: Compile backends
# run: |
# pnpm --prefix packages/@biomejs/js-api build:wasm-bundler
# pnpm --prefix packages/@biomejs/js-api build:wasm-node
# pnpm --prefix packages/@biomejs/js-api build:wasm-web
# pnpm --prefix packages/@biomejs/backend-jsonrpc i
# pnpm --prefix packages/@biomejs/backend-jsonrpc run build
#
# - name: Build package
# working-directory: npm/js-api
# run: |
# pnpm i
# pnpm build
#
# - name: Upload JS API artifact
# uses: actions/upload-artifact@v3
# with:
# name: js-api
# path: |
# ./npm/js-api/dist
# if-no-files-found: error
#
# publish:
# name: Publish
# runs-on: ubuntu-latest
# needs: build
# environment: npm-publish
# steps:
# - uses: actions/checkout@v3
#
# - name: Download package artifact
# uses: actions/download-artifact@v3
# with:
# name: js-api
# path: npm/js-api/dist
#
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18
# registry-url: 'https://registry.npmjs.org'
#
# - name: Set release infos
# if: needs.build.outputs.prerelease == 'true'
# run: node npm/js-api/scripts/update-nightly-version.mjs
#
# - name: Publish npm package as latest
# run: npm publish npm/js-api --tag latest --access public
# if: needs.build.outputs.prerelease != 'true'
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish npm package as nightly
# run: npm publish npm/js-api --tag nightly --access public
# if: needs.build.outputs.prerelease == 'true'
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
#
# - name: Create GitHub release and tag
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# name: JavaScript APIs v${{ needs.build.outputs.version }}
# tag_name: js-api/v${{ needs.build.outputs.version }}
# draft: false
# prerelease: ${{ needs.build.outputs.prerelease == 'true' }}
# generate_release_notes: true

jobs:
check:
name: Check version
runs-on: ubuntu-latest
outputs:
version: ${{ env.version }}
prerelease: ${{ env.prerelease }}
nightly: ${{ env.nightly }}
version_changed: ${{ steps.version.outputs.changed }}
steps:
- uses: actions/checkout@v3

- name: Check nightly status
id: nightly
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: echo "nightly=true" >> $GITHUB_ENV

- name: Check version changes
uses: EndBug/version-check@v1
if: env.nightly != 'true'
id: version
with:
diff-search: true
file-name: npm/js-api/package.json

- name: Set version name
run: echo "version=${{ steps.version.outputs.version }}" >> $GITHUB_ENV

- name: Check prerelease status
id: prerelease
if: env.nightly == 'true'
run: echo "prerelease=true" >> $GITHUB_ENV

- name: Check version status
if: steps.version.outputs.changed == 'true'
run: 'echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"'

build:
name: Package JavaScript APIs
runs-on: ubuntu-latest

needs: check
if: needs.check.outputs.version_changed == 'true' || needs.check.outputs.nightly == 'true'
outputs:
version: ${{ env.version }}
prerelease: ${{ env.prerelease }}

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'

- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 8

- name: Set release infos
if: needs.check.outputs.prerelease == 'true'
run: |
echo "prerelease=true" >> $GITHUB_ENV
node npm/js-api/scripts/update-nightly-version.mjs >> $GITHUB_ENV
- name: Set release infos
if: needs.check.outputs.prerelease != 'true'
run: |
echo "prerelease=false" >> $GITHUB_ENV
echo "version=${{ needs.check.outputs.version }}" >> $GITHUB_ENV
- name: Compile backends
run: |
pnpm --prefix packages/@biomejs/js-api build:wasm-bundler
pnpm --prefix packages/@biomejs/js-api build:wasm-node
pnpm --prefix packages/@biomejs/js-api build:wasm-web
pnpm --prefix packages/@biomejs/backend-jsonrpc i
pnpm --prefix packages/@biomejs/backend-jsonrpc run build
- name: Build package
working-directory: npm/js-api
run: |
pnpm i
pnpm build
- name: Upload JS API artifact
uses: actions/upload-artifact@v3
with:
name: js-api
path: |
./npm/js-api/dist
if-no-files-found: error

publish:
name: Publish
runs-on: ubuntu-latest
needs: build
environment: npm-publish
steps:
- uses: actions/checkout@v3

- name: Download package artifact
uses: actions/download-artifact@v3
with:
name: js-api
path: npm/js-api/dist

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Set release infos
if: needs.build.outputs.prerelease == 'true'
run: node npm/js-api/scripts/update-nightly-version.mjs

- name: Publish npm package as latest
run: npm publish npm/js-api --tag latest --access public
if: needs.build.outputs.prerelease != 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish npm package as nightly
run: npm publish npm/js-api --tag nightly --access public
if: needs.build.outputs.prerelease == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub release and tag
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: JavaScript APIs v${{ needs.build.outputs.version }}
tag_name: js-api/v${{ needs.build.outputs.version }}
draft: false
prerelease: ${{ needs.build.outputs.prerelease == 'true' }}
generate_release_notes: true
2 changes: 1 addition & 1 deletion .github/workflows/release_lsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
id: rome_version
with:
diff-search: true
file-name: npm/rome/package.json
file-name: packages/@biomejs/biome/package.json

- name: Set version name
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches:
- main
paths:
- 'npm/**'
- 'packages/**'
- 'crates/**'
pull_request:
branches:
- main
paths:
- 'npm/**'
- 'packages/**'
- 'crates/**'

env:
Expand Down Expand Up @@ -54,5 +54,5 @@ jobs:
pnpm --prefix packages/@biomejs/backend-jsonrpc i
pnpm --prefix packages/@biomejs/backend-jsonrpc run build
- name: CI checks
working-directory: npm/js-api
working-directory: packages/@biomejs/js-api
run: pnpm run ci
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Profile-*.json
**/node_modules
**/dist
**/build
npm/cli-*
packages/@biomejs/cli-*
.pnpm-debug.log

# https://github.com/nnethercote/dhat-rs output file
Expand Down
4 changes: 2 additions & 2 deletions editors/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This configuration sets Rome as the default formatter for JavaScript files. All

## Configuration Resolution

The extension automatically loads the `biome.json` file from the workspace’s root directory.
The extension automatically loads the `rome.json` file from the workspace’s root directory.

## Rome Resolution

Expand Down Expand Up @@ -94,7 +94,7 @@ Enables Rome to handle renames in the workspace (experimental).

### `biome.requireConfiguration`

Disables formatting, linting, and syntax errors for projects without a `biome.json` file. Requires Rome 12 or newer.
Disables formatting, linting, and syntax errors for projects without a `rome.json` file. Requires Rome 12 or newer.
Enabled by default.

## Versioning
Expand Down
Loading

0 comments on commit 21b9981

Please sign in to comment.