Skip to content

Commit bc587d7

Browse files
Merge pull request #81 from appwrite/dev
fix: travis deploy
2 parents a3e1acd + 79d6e70 commit bc587d7

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.travis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
language: node_js
22
node_js:
3-
- "14.16"
3+
- "16"
44

55
jobs:
66
include:
77
- stage: NPM RC Release
88
if: tag =~ /-(rc|RC)/
9-
node_js: "14.16"
10-
script: echo "Deploying RC to NPM..."
9+
node_js: "16"
10+
script:
11+
- npm install
12+
- npm run build
13+
- echo "Deploying RC to NPM..."
1114
deploy:
1215
provider: npm
1316
email: $NPM_EMAIL
1417
api_key: $NPM_API_KEY
1518
tag: next
1619
- stage: NPM Release
1720
if: not tag =~ /-(rc|RC)/
18-
node_js: "14.16"
19-
script: echo "Deploying to NPM..."
21+
node_js: "16"
22+
script:
23+
- npm install
24+
- npm run build
25+
- echo "Deploying to NPM..."
2026
deploy:
2127
provider: npm
2228
email: $NPM_EMAIL
2329
api_key: $NPM_API_KEY
30+
skip_cleanup: true
2431
on:
25-
tags: true
32+
tags: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "node-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5-
"version": "12.1.0-RC1",
5+
"version": "12.1.0-RC2",
66
"license": "BSD-3-Clause",
77
"main": "dist/index.js",
88
"type": "commonjs",

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AppwriteException extends Error {
3333
}
3434

3535
function getUserAgent() {
36-
let ua = 'AppwriteNodeJSSDK/12.1.0-RC1';
36+
let ua = 'AppwriteNodeJSSDK/12.1.0-RC2';
3737

3838
// `process` is a global in Node.js, but not fully available in all runtimes.
3939
const platform: string[] = [];
@@ -82,7 +82,7 @@ class Client {
8282
'x-sdk-name': 'Node.js',
8383
'x-sdk-platform': 'server',
8484
'x-sdk-language': 'nodejs',
85-
'x-sdk-version': '12.1.0-RC1',
85+
'x-sdk-version': '12.1.0-RC2',
8686
'user-agent' : getUserAgent(),
8787
'X-Appwrite-Response-Format': '1.5.0',
8888
};

0 commit comments

Comments
 (0)