mongodb-atlas-api-client 4.0.2 → 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
|
|
@@ -22,11 +25,11 @@ jobs:
|
|
|
22
25
|
runs-on: ubuntu-latest
|
|
23
26
|
needs: build
|
|
24
27
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
28
|
+
- uses: actions/checkout@v3
|
|
26
29
|
with:
|
|
27
30
|
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
|
|
28
31
|
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo:
|
|
29
|
-
- uses: actions/
|
|
32
|
+
- uses: actions/checkout@v3
|
|
30
33
|
with:
|
|
31
34
|
node-version: 14
|
|
32
35
|
registry-url: https://registry.npmjs.org/
|
|
@@ -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.
|
|
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}}
|