Skip to content

Commit 90107f9

Browse files
authored
Fix paths to links-metadata. (#166)
* Fix paths to links-metadata. * Fix auth. * Fix path to built version. * linux compat. * Publish both again.
1 parent eed08f9 commit 90107f9

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ jobs:
2525
with:
2626
node-version: 22
2727
cache: "npm"
28+
# required for proper publish authorization
29+
registry-url: 'https://registry.npmjs.org/'
2830
- name: Install dependencies
2931
run: npm ci
3032
- name: Build links-metadata
31-
working-directory: ./tools/links-metadata
32-
run: npm run build
33+
working-directory: ./shared/links-metadata
34+
run: npm run build && npm run update-main
3335
- name: Build links-check
3436
working-directory: ./tools/links-check
3537
run: npm run build
3638
- name: Publish links-metadata
3739
run: npm publish --access public
38-
working-directory: ./tools/links-metadata
40+
working-directory: ./shared/links-metadata
3941
env:
4042
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4143
- name: Publish links-check

shared/links-metadata/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "@fluffylabs/links-metadata",
3-
"version": "1.1.0",
3+
"version": "1.1.2",
44
"scripts": {
55
"build": "tsc",
6-
"prepublish": "npm run build",
6+
"update-main": "sed -i s#index\\.ts#dist/index.js# ./package.json",
7+
"prepublish": "npm run build && npm run update-main",
78
"qa": "biome ci",
89
"qa-fix": "npm run format; npm run lint",
910
"format": "biome format --write",
1011
"lint": "biome lint --write; biome check --write"
1112
},
13+
"main": "index.ts",
1214
"files": ["dist"],
1315
"author": "Fluffy Labs",
1416
"license": "MPL-2.0",

tools/links-check/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fluffylabs/links-check",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Check list of files for Gray Paper Reader links and make sure they are up to date.",
55
"main": "./dist/index.js",
66
"bin": {
@@ -27,7 +27,7 @@
2727
"typescript": "^5.6.3"
2828
},
2929
"dependencies": {
30-
"@fluffylabs/links-metadata": "^1.1.0",
30+
"@fluffylabs/links-metadata": "^1.1.2",
3131
"commander": "^12.1.0",
3232
"fast-glob": "^3.3.3",
3333
"ignore": "^6.0.2"

0 commit comments

Comments
 (0)