From dd979cf01624797667559095bf72a6db17544f2e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 12 Dec 2024 18:31:51 +0200 Subject: [PATCH] fix(ci): publish not working --- .github/workflows/release-package.yml | 4 +- package.json | 4 +- yarn.lock | 54 +++++++++++++-------------- 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index a0fad7b6a..d2e66cfc3 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -11,7 +11,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22 - registry-url: https://npm.pkg.github.com/ + always-auth: true + registry-url: https://npm.pkg.github.com/ + scope: '@triliumnext' - run: yarn install - run: yarn push env: diff --git a/package.json b/package.json index deca8a2a0..4ea018368 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "express-partial-content", + "name": "@triliumnext/express-partial-content", "description": "A partial content handler implementation for any readable stream with Express. Based on this blog post: https://www.codeproject.com/Articles/813480/HTTP-Partial-Content-In-Node-js.", "version": "1.0.1", "main": "dist/index.js", @@ -14,7 +14,7 @@ "build:watch": "npx tsc -w", "build:dev": "npx tsc && yarn copy-assets", "build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json", - "push": "yarn test && yarn build:prod && yarn publish", + "push": "yarn test && yarn build:prod && yarn npm publish", "run:examples:file": "node ./dist/examples/express-file-server/index.js", "run:examples:mongo": "node ./dist/examples/express-mongo-server/index.js" }, diff --git a/yarn.lock b/yarn.lock index bf25ed87c..24ad91815 100644 --- a/yarn.lock +++ b/yarn.lock @@ -302,6 +302,33 @@ __metadata: languageName: node linkType: hard +"@triliumnext/express-partial-content@workspace:.": + version: 0.0.0-use.local + resolution: "@triliumnext/express-partial-content@workspace:." + dependencies: + "@types/chai": "npm:^4.1.7" + "@types/express": "npm:^4.16.1" + "@types/mocha": "npm:^5.2.6" + "@types/mongodb": "npm:^3.1.22" + "@types/sinon": "npm:^7.0.9" + "@typescript-eslint/eslint-plugin": "npm:^1.5.0" + "@typescript-eslint/parser": "npm:^1.5.0" + chai: "npm:^4.2.0" + copyfiles: "npm:^2.1.0" + cross-env: "npm:^5.2.0" + eslint: "npm:^5.15.3" + express: "npm:^4.16.4" + mocha: "npm:^6.0.2" + mongodb: "npm:^3.1.13" + nyc: "npm:^17.1.0" + rimraf: "npm:^2.6.3" + sinon: "npm:^7.2.7" + typescript: "npm:^5.7.2" + peerDependencies: + express: ^4.16.4 + languageName: unknown + linkType: soft + "@types/body-parser@npm:*": version: 1.17.0 resolution: "@types/body-parser@npm:1.17.0" @@ -1548,33 +1575,6 @@ __metadata: languageName: node linkType: hard -"express-partial-content@workspace:.": - version: 0.0.0-use.local - resolution: "express-partial-content@workspace:." - dependencies: - "@types/chai": "npm:^4.1.7" - "@types/express": "npm:^4.16.1" - "@types/mocha": "npm:^5.2.6" - "@types/mongodb": "npm:^3.1.22" - "@types/sinon": "npm:^7.0.9" - "@typescript-eslint/eslint-plugin": "npm:^1.5.0" - "@typescript-eslint/parser": "npm:^1.5.0" - chai: "npm:^4.2.0" - copyfiles: "npm:^2.1.0" - cross-env: "npm:^5.2.0" - eslint: "npm:^5.15.3" - express: "npm:^4.16.4" - mocha: "npm:^6.0.2" - mongodb: "npm:^3.1.13" - nyc: "npm:^17.1.0" - rimraf: "npm:^2.6.3" - sinon: "npm:^7.2.7" - typescript: "npm:^5.7.2" - peerDependencies: - express: ^4.16.4 - languageName: unknown - linkType: soft - "express@npm:^4.16.4": version: 4.16.4 resolution: "express@npm:4.16.4"