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
12 changes: 2 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: echo "PACKAGE_JSON=$(jq -c . < package.json)" >> $GITHUB_ENV
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ fromJson(env.PACKAGE_JSON).volta.node }}
registry-url: https://registry.npmjs.org/
cache: pnpm
- uses: jdx/mise-action@v4
- name: Upgrade npm for OCID support
run: npm i -g npm@latest
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm -r publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm -r publish --no-git-checks
8 changes: 1 addition & 7 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: echo "PACKAGE_JSON=$(jq -c . < package.json)" >> $GITHUB_ENV
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ fromJson(env.PACKAGE_JSON).volta.node }}
registry-url: https://registry.npmjs.org/
cache: pnpm
- uses: jdx/mise-action@v4
- run: pnpm i --frozen-lockfile
- name: Check version bumps
run: |
Expand Down
3 changes: 3 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
node = "latest"
pnpm = "latest"
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"author": "battlesqui_d",
"license": "GPL-3.0",
"devDependencies": {
"oxfmt": "^0.49.0",
"oxlint": "^1.64.0",
"oxfmt": "^0.51.0",
"oxlint": "^1.66.0",
"typescript": "6.0.3"
},
"scripts": {
Expand All @@ -22,9 +22,5 @@
"neat": "pnpm lint && pnpm fmt",
"neat:fix": "pnpm lint:fix && pnpm fmt:fix"
},
"volta": {
"pnpm": "11.1.2",
"node": "22.14.0"
},
"packageManager": "pnpm@11.1.2"
"packageManager": "pnpm@11.3.0"
}
4 changes: 2 additions & 2 deletions packages/scraper-strategies/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qnaplus/scraper-strategies",
"version": "3.1.4",
"version": "3.1.5",
"description": "Request stategies for @qnaplus/scraper",
"main": "dist/index.js",
"repository": {
Expand All @@ -23,7 +23,7 @@
"cycletls": "^2.0.5",
"header-generator": "^2.1.82",
"pino": "catalog:",
"ts-curl-impersonate": "^1.0.9"
"ts-curl-impersonate": "^1.0.10-rc.0"
},
"devDependencies": {
"@qnaplus/typescript-config": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/scraper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qnaplus/scraper",
"version": "3.1.4",
"version": "3.1.5",
"description": "Utility package to scrape questions from the VEX Robotics Q&A.",
"main": "dist/index.js",
"repository": {
Expand Down
9 changes: 9 additions & 0 deletions packages/scraper/tests/fetchers.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { describe, expect, it } from "vitest";
import { checkIfReadOnly } from "../src/modules/fetchers";

describe("checkIfReadOnly", () => {
it("shall report the 2025-2026 V5RC Q&A as readonly", async () => {
const readOnly = await checkIfReadOnly("V5RC", "2025-2026");
expect(readOnly).toBe(true);
});
});
Loading