fix(ci): publish not working

This commit is contained in:
Elian Doran 2024-12-12 18:31:51 +02:00
parent 478b98112e
commit dd979cf016
No known key found for this signature in database
3 changed files with 32 additions and 30 deletions

View File

@ -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:

View File

@ -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"
},

View File

@ -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"