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
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@ jobs:
with:
node-version: 22
cache: "npm"
# required for proper publish authorization
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm ci
- name: Build links-metadata
working-directory: ./tools/links-metadata
run: npm run build
working-directory: ./shared/links-metadata
run: npm run build && npm run update-main
- name: Build links-check
working-directory: ./tools/links-check
run: npm run build
- name: Publish links-metadata
run: npm publish --access public
working-directory: ./tools/links-metadata
working-directory: ./shared/links-metadata
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish links-check
Expand Down
6 changes: 4 additions & 2 deletions shared/links-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "@fluffylabs/links-metadata",
"version": "1.1.0",
"version": "1.1.2",
"scripts": {
"build": "tsc",
"prepublish": "npm run build",
"update-main": "sed -i s#index\\.ts#dist/index.js# ./package.json",
"prepublish": "npm run build && npm run update-main",
"qa": "biome ci",
"qa-fix": "npm run format; npm run lint",
"format": "biome format --write",
"lint": "biome lint --write; biome check --write"
},
"main": "index.ts",
"files": ["dist"],
"author": "Fluffy Labs",
"license": "MPL-2.0",
Expand Down
4 changes: 2 additions & 2 deletions tools/links-check/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluffylabs/links-check",
"version": "0.2.0",
"version": "0.2.1",
"description": "Check list of files for Gray Paper Reader links and make sure they are up to date.",
"main": "./dist/index.js",
"bin": {
Expand All @@ -27,7 +27,7 @@
"typescript": "^5.6.3"
},
"dependencies": {
"@fluffylabs/links-metadata": "^1.1.0",
"@fluffylabs/links-metadata": "^1.1.2",
"commander": "^12.1.0",
"fast-glob": "^3.3.3",
"ignore": "^6.0.2"
Expand Down