ssh-client-wrapper 1.0.2 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,14 @@
1
- # This workflow will publish a package to npm js if run UT workflow passed
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
1
+ name: publish
6
2
  on:
7
- workflow_run:
8
- workflows:
9
- - run UT
10
- types:
11
- - completed
3
+ push:
4
+ tags:
5
+ - 'v*'
12
6
  jobs:
7
+ test:
8
+ uses: ./.github/workflows/run_test.yml
13
9
  publish-npm:
14
10
  runs-on: ubuntu-latest
15
11
  steps:
16
- - run: echo ${{ github.ref }}
17
- - run: echo ${{ github.ref_name }}
18
- - run: echo ${{ github.ref_type }}
19
12
  - uses: actions/checkout@v3
20
13
  - uses: actions/setup-node@v3
21
14
  with:
@@ -2,8 +2,11 @@ name: run UT
2
2
  on:
3
3
  push:
4
4
  branches: [ main ]
5
+ tag-ignore: 'v*'
5
6
  pull_request:
6
7
  branches: [ main ]
8
+ tag-ignore: 'v*'
9
+ workflow_call:
7
10
 
8
11
  jobs:
9
12
  test:
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ssh-client-wrapper",
3
- "version": "1.0.2",
3
+ "version": "1.0.6",
4
4
  "description": "wrapper library for open ssh client and rsync",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "test": "mocha --recursive test",
8
8
  "lint": "eslint --fix lib test",
9
- "postversion": "git push origin $(git describe --abbrev=0 --tags)"
9
+ "postversion": "git push origin $(git describe --abbrev=0 --tags) && git push"
10
10
  },
11
11
  "engines": {
12
12
  "node": ">=12.9"