-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/make-locations-visible-intellij
- Loading branch information
Showing
15 changed files
with
1,347 additions
and
1,318 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,53 @@ | ||
name: Publish Approved Pull Requests to pkg.pr.new | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
check: | ||
# First, trigger a permissions check on the user approving the pull request. | ||
if: github.event.review.state == 'approved' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
has-permissions: ${{ steps.checkPermissions.outputs.result }} | ||
steps: | ||
- name: Check permissions | ||
id: checkPermissions | ||
uses: actions/github-script@v7 | ||
with: | ||
result-encoding: string | ||
# The approver must have write access to the repository to trigger the package preview. | ||
script: | | ||
const { data: { permission } } = | ||
await github.rest.repos.getCollaboratorPermissionLevel({ | ||
...context.repo, | ||
username: context.actor, | ||
}); | ||
return permission === 'write' || permission === 'admin'; | ||
publish: | ||
needs: check | ||
# Publish the preview package only if the permissions check passed. | ||
if: needs.check.outputs.has-permissions == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm exec turbo build | ||
|
||
- run: pnpm dlx pkg-pr-new publish './packages/*' |
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 |
---|---|---|
|
@@ -2,25 +2,24 @@ | |
"name": "@steiger/root", | ||
"private": true, | ||
"scripts": { | ||
"format": "prettier --write . \"!packages/** !tooling/**\" --cache", | ||
"check-formatting": "prettier --check . \"!packages/** !tooling/**\" --cache", | ||
"format": "prettier --cache --write . \"!packages/**\" \"!tooling/**\"", | ||
"check-formatting": "prettier --cache --check . \"!packages/**\" \"!tooling/**\"", | ||
"check-monorepo": "manypkg check", | ||
"prepare": "husky" | ||
}, | ||
"engines": { | ||
"node": ">= 20" | ||
"node": ">= 18" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@changesets/cli": "^2.27.9", | ||
"@manypkg/cli": "^0.21.4", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.10", | ||
"@manypkg/cli": "^0.23.0", | ||
"@steiger/eslint-config": "workspace:*", | ||
"@tsconfig/node-lts": "^20.1.3", | ||
"eslint": "^9.12.0", | ||
"husky": "^9.1.6", | ||
"eslint": "^9.16.0", | ||
"husky": "^9.1.7", | ||
"lint-staged": "^15.2.10", | ||
"prettier": "^3.3.3", | ||
"turbo": "^2.1.3" | ||
"prettier": "^3.4.2", | ||
"turbo": "^2.3.3" | ||
}, | ||
"lint-staged": { | ||
"*": "prettier --write --ignore-unknown", | ||
|
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
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// Source: https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331 | ||
|
||
import { createRequire } from 'node:module' | ||
import module from 'node:module' | ||
import path from 'node:path' | ||
import url from 'node:url' | ||
|
||
globalThis.require = createRequire(import.meta.url) | ||
globalThis.require = module.createRequire(import.meta.url) | ||
globalThis.__filename = url.fileURLToPath(import.meta.url) | ||
globalThis.__dirname = path.dirname(__filename) |
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
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
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
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.