Skip to content

Commit dd5f8ea

Browse files
committed
fix lib & publication
1 parent 4cd1fe1 commit dd5f8ea

File tree

6 files changed

+24
-5
lines changed

6 files changed

+24
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
name: Node.js Package
55

66
on:
7+
workflow_dispatch:
78
release:
89
types: [created]
910

@@ -15,9 +16,16 @@ jobs:
1516
contents: read
1617
steps:
1718
- uses: actions/checkout@v5
19+
- uses: webfactory/ssh-agent@v0.10.0
20+
with:
21+
ssh-private-key: |
22+
${{ secrets.RSA_KEY }}
23+
${{ secrets.ECDSA_KEY }}
24+
${{ secrets.ED25519_KEY }}
1825
- uses: actions/setup-node@v6
1926
with:
2027
node-version: 24
2128
registry-url: https://registry.npmjs.org/
2229
- run: npm install
30+
- run: npm run test
2331
- run: npm publish --provenance --access public

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
node_modules/
44
dist/
55
mise.toml
6+
/*.tgz
67
/id_*

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default defineConfig([
5656
},
5757
},
5858
{
59-
files: ['src/index.ts'],
59+
files: ['src/cli.ts'],
6060
rules: {
6161
'@typescript-eslint/no-unsafe-argument': 'off',
6262
'max-params': 'off',

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "ssh-agent-secrets",
3-
"version": "0.1.0",
3+
"version": "0.1.3",
4+
"description": "Node library to encrypt and decrypt secrets using an SSH agent",
45
"keywords": [
56
"ssh",
67
"encryption",
@@ -12,20 +13,29 @@
1213
"bugs": {
1314
"url": "https://github.com/ddebin/ssh-agent-secrets/issues"
1415
},
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/ddebin/ssh-agent-secrets.git"
19+
},
1520
"license": "MIT",
1621
"author": "Damien Debin <damien.debin@gmail.com>",
1722
"type": "module",
23+
"main": "dist/src/lib/ssh_agent_client.js",
24+
"types": "dist/src/lib/ssh_agent_client.d.ts",
1825
"bin": {
19-
"ssh-crypt": "./dist/src/index.js"
26+
"ssh-crypt": "dist/src/cli.js"
2027
},
28+
"files": [
29+
"dist/src/**/*"
30+
],
2131
"scripts": {
2232
"build": "tsc -b",
2333
"coverage": "nyc --reporter=lcov --reporter=text-summary npm test",
2434
"eslint:check": "eslint .",
2535
"eslint:fix": "eslint . --fix",
2636
"fix": "npm run eslint:fix && npm run prettier:fix",
2737
"lint": "npm run typecheck && npm run eslint:check && npm run prettier:check",
28-
"prepublishOnly": "npm run build && npm run lint && npm run test",
38+
"prepublishOnly": "npm run build && npm run lint",
2939
"prettier:check": "prettier --check . --config .prettierrc",
3040
"prettier:fix": "prettier --write . --config .prettierrc",
3141
"test": "mocha",
File renamed without changes.

test/ssh_agent_client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('SSHAgentClient tests', () => {
6060
'2Ox3c3wtOkmZwINZ0nSi31NP2ysWnERdaLWMcY/CONPcLK3DPBfEolG307yMdmYAsJY5VW/sgw0ye58zOu5daos2xtWxYTHUvY7peDMcJWgQJ5YFBQWGY6ku++tqR31FSlLl9KJMUnXGdE88T1RFbaWOsg8U37IsMd5juxCeakgmcvo4PXOcWlRKBnQKRaxoOl+lQxcBNb3GM2T/kqnKkae5NebaUMOI+v7U95tzNPq0xLrZ0805rNETEcLdMszi6XS8Gbh4iDZNZGV7sA5hh9rB/avhKQHYplJ9YzyLfLEX3S8bZf41xIynt62PXeEUuM5UcYRj1lUC6quGC59Z4P2pBujjvJqj9gmKjwVcwnVo28J9OEugmRnO2QmamR0LIJIhIJmdmRRFqD86vkfyYBz733KRkvA80gXvbvligTI5LZwpUoTX7YWGkpz8fCCrMJ4WRyu9nerp9EGk4afhlAb92wMSqQV3QmXI/uRjHkbs+8rfeZS6i77Xgj4AYkHp',
6161
)
6262
})
63-
it('should encrypt with no error', async () => {
63+
it('should encrypt', async () => {
6464
const agent = new SSHAgentClient()
6565
const identity = await agent.getIdentity('key_rsa')
6666
if (!identity) {

0 commit comments

Comments
 (0)