mongodb-atlas-api-client 4.2.0 → 4.6.0

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.
@@ -2,7 +2,10 @@ name: Node.js Package
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
5
-
5
+ inputs:
6
+ npm_otp:
7
+ description: enter npm otp
8
+ required: true
6
9
  jobs:
7
10
  build:
8
11
  runs-on: ubuntu-latest
@@ -45,11 +48,13 @@ jobs:
45
48
  github_token: ${{ secrets.GITHUB_TOKEN }}
46
49
  branch: ${{ github.ref }}
47
50
  - run: npm version minor
51
+ - name: Authenticate with NPM
52
+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
48
53
  - name: Push changes
49
54
  uses: ad-m/github-push-action@master
50
55
  with:
51
56
  github_token: ${{ secrets.GITHUB_TOKEN }}
52
57
  branch: ${{ github.ref }}
53
- - run: npm publish
58
+ - run: npm publish --otp ${{github.event.inputs.npm_otp}}
54
59
  env:
55
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
60
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -0,0 +1,22 @@
1
+ name: test npm
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ publish-npm:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+ with:
12
+ persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
13
+ fetch-depth: 0 # otherwise, you will failed to push refs to dest repo:
14
+ - uses: actions/checkout@v3
15
+ with:
16
+ node-version: 14
17
+ registry-url: https://registry.npmjs.org/
18
+ - name: Authenticate with NPM
19
+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
20
+ - run: npm whoami
21
+ env:
22
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongodb-atlas-api-client",
3
- "version": "4.2.0",
3
+ "version": "4.6.0",
4
4
  "description": "A mongodb atlas api client for nodejs.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {