Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Check

on:
pull_request:
push:
branches:
- master

permissions:
contents: read

jobs:
check:
name: Check (${{ matrix.os }}, Node ${{ matrix.node-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
node-version:
- "20.20.2"
- "24"
steps:
- name: Enable symbolic links
if: runner.os == 'Windows'
run: git config --global core.symlinks true
- name: Check out repository
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check repository
run: pnpm run check
14 changes: 9 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,29 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://npm.pkg.github.com
scope: "@paperkeel"
cache: npm
cache: pnpm
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Check package
run: npm run check
run: pnpm run check
- name: Verify release version
if: github.event_name == 'release'
run: |
package_version="$(npm pkg get version | tr -d '\"')"
package_version="$(node -p "require('./package.json').version")"
test "v${package_version}" = "${RELEASE_TAG}"
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
- name: Publish package
run: npm publish --registry https://npm.pkg.github.com
run: pnpm publish --no-git-checks --registry https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ creator validator.
Run this command after each change:

```bash
./scripts/check.sh
pnpm run check
```

The repository has no automatic correction command.
Loading