Skip to content

Commit

Permalink
Merge pull request #81 from appwrite/dev
Browse files Browse the repository at this point in the history
fix: travis deploy
  • Loading branch information
christyjacob4 authored Apr 17, 2024
2 parents a3e1acd + 79d6e70 commit bc587d7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
language: node_js
node_js:
- "14.16"
- "16"

jobs:
include:
- stage: NPM RC Release
if: tag =~ /-(rc|RC)/
node_js: "14.16"
script: echo "Deploying RC to NPM..."
node_js: "16"
script:
- npm install
- npm run build
- echo "Deploying RC to NPM..."
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
tag: next
- stage: NPM Release
if: not tag =~ /-(rc|RC)/
node_js: "14.16"
script: echo "Deploying to NPM..."
node_js: "16"
script:
- npm install
- npm run build
- echo "Deploying to NPM..."
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
skip_cleanup: true
on:
tags: true
tags: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "node-appwrite",
"homepage": "https://appwrite.io/support",
"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",
"version": "12.1.0-RC1",
"version": "12.1.0-RC2",
"license": "BSD-3-Clause",
"main": "dist/index.js",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AppwriteException extends Error {
}

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

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

0 comments on commit bc587d7

Please sign in to comment.