-
-
Notifications
You must be signed in to change notification settings - Fork 80
feat: package cross-platform input injection into @aossie/rein-input npm library (#380)
#383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Aryan-en
wants to merge
5
commits into
AOSSIE-Org:main
Choose a base branch
from
Aryan-en:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
dde96f5
Added screen share consent modal to trackpad route with i18n support,…
Aryan-en b712787
chore: upgrade typescript to v7, add typecheck script, and remove unu…
Aryan-en 3e4ac31
Merge branch 'main' into main
Aryan-en 69cc2ba
feat(input): extract Koffi input injection layer into @aossie/rein-in…
Aryan-en 5956aef
Potential fix for pull request finding
Aryan-en File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,88 @@ | ||
| name: Package CI & Publish | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| paths: | ||
| - "packages/rein-input/**" | ||
| - ".github/workflows/package.yml" | ||
| pull_request: | ||
| paths: | ||
| - "packages/rein-input/**" | ||
| - ".github/workflows/package.yml" | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
| inputs: | ||
| publish: | ||
| description: "Publish to npm" | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
|
|
||
| jobs: | ||
| test-package: | ||
| name: Test on ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
Aryan-en marked this conversation as resolved.
|
||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
| cache: "npm" | ||
|
Aryan-en marked this conversation as resolved.
|
||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
|
|
||
| - name: Run Tests | ||
| run: npm run test | ||
|
|
||
| - name: Build Package | ||
| run: npm run build:package | ||
|
|
||
| - name: Verify Package Tarball | ||
| run: | | ||
| cd packages/rein-input | ||
| npm pack --dry-run | ||
|
Aryan-en marked this conversation as resolved.
|
||
|
|
||
| publish-package: | ||
| name: Publish to npm | ||
| needs: test-package | ||
| if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.publish == true) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
| registry-url: "https://registry.npmjs.org" | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
|
|
||
| - name: Build Package | ||
| run: npm run build:package | ||
|
|
||
| - name: Publish @aossie/rein-input | ||
| run: | | ||
| cd packages/rein-input | ||
| npm publish --access public --provenance | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.