File tree 3 files changed +30
-1
lines changed
3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " publish"
3
+
4
+ on :
5
+ release :
6
+ types : [published]
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-22.04
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+
14
+ - name : " Set up Node"
15
+ uses : actions/setup-node@v4
16
+ with :
17
+ node-version : 20.x
18
+ registry-url : " https://registry.npmjs.org"
19
+
20
+ - name : " Install dependencies"
21
+ run : npm ci
22
+
23
+ - name : " Publish package on NPM"
24
+ run : npm publish --access public
25
+ env :
26
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " serverless-scaleway-functions" ,
3
- "version" : " 0.4.12 " ,
3
+ "version" : " 0.4.13 " ,
4
4
"description" : " Provider plugin for the Serverless Framework v1.x which adds support for Scaleway Functions." ,
5
5
"main" : " index.js" ,
6
6
"author" : " scaleway.com" ,
Original file line number Diff line number Diff line change @@ -14,10 +14,13 @@ const runtimesApi = require("./runtimes");
14
14
// Registry
15
15
const RegistryApi = require ( "./registry" ) ;
16
16
17
+ const version = "0.4.13" ;
18
+
17
19
function getApiManager ( apiUrl , token ) {
18
20
return axios . create ( {
19
21
baseURL : apiUrl ,
20
22
headers : {
23
+ "User-Agent" : `serverless-scaleway-functions/${ version } ` ,
21
24
"X-Auth-Token" : token ,
22
25
} ,
23
26
httpsAgent : new https . Agent ( {
You can’t perform that action at this time.
0 commit comments