File tree 4 files changed +36
-7
lines changed
4 files changed +36
-7
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,26 @@ name: Publish
3
3
on :
4
4
release :
5
5
types : [created]
6
-
7
6
jobs :
8
7
build :
9
8
runs-on : ubuntu-latest
9
+ env :
10
+ TARGET_URL : https://www.npmjs.com/package/@patch-technology/patch
11
+
10
12
steps :
11
- - uses : actions/checkout@v1
13
+ - uses : actions/checkout@v2
14
+
15
+ - uses : chrnorm/deployment-action@releases/v1
16
+ name : Create GitHub deployment
17
+ id : deployment
18
+ with :
19
+ token : " ${{ github.token }}"
20
+ target_url : ${{ env.TARGET_URL }}
21
+ environment : production
22
+
12
23
- uses : actions/setup-node@v2
13
24
with :
14
- node-version : 12
25
+ node-version : 14
15
26
registry-url : https://registry.npmjs.org/
16
27
17
28
- name : Install dependencies
29
40
run : npm publish --access public
30
41
env :
31
42
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
43
+
44
+ - name : Update deployment status (success)
45
+ if : success()
46
+ uses : chrnorm/deployment-status@releases/v1
47
+ with :
48
+ token : " ${{ github.token }}"
49
+ target_url : ${{ env.TARGET_URL }}
50
+ state : " success"
51
+ deployment_id : ${{ steps.deployment.outputs.deployment_id }}
52
+
53
+ - name : Update deployment status (failure)
54
+ if : failure()
55
+ uses : chrnorm/deployment-status@releases/v1
56
+ with :
57
+ token : " ${{ github.token }}"
58
+ target_url : ${{ env.TARGET_URL }}
59
+ state : " failure"
60
+ deployment_id : ${{ steps.deployment.outputs.deployment_id }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @patch-technology/patch" ,
3
- "version" : " 1.10.1 " ,
3
+ "version" : " 1.10.2 " ,
4
4
"description" : " Node.js wrapper for the Patch API" ,
5
5
"license" : " MIT" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class ApiClient {
16
16
} ;
17
17
18
18
this . defaultHeaders = {
19
- 'User-Agent' : 'patch-node/1.10.1 '
19
+ 'User-Agent' : 'patch-node/1.10.2 '
20
20
} ;
21
21
22
22
/**
You can’t perform that action at this time.
0 commit comments