Skip to content

Commit 989bcb5

Browse files
committed
github action to publis
1 parent 870c3b3 commit 989bcb5

File tree

4 files changed

+42
-39
lines changed

4 files changed

+42
-39
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
# Setup Node.js environment
17+
- name: Use Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: '14'
21+
registry-url: 'https://registry.npmjs.org/'
22+
23+
# Install dependencies (if any) and build your project (if necessary)
24+
- name: Install dependencies and build
25+
run: |
26+
npm install
27+
npm run build
28+
29+
# Publish to NPM
30+
- name: Publish
31+
run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "appwrite",
2+
"name": "react-native-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",
55
"version": "13.0.2",
@@ -17,7 +17,7 @@
1717
"types": "types/index.d.ts",
1818
"repository": {
1919
"type": "git",
20-
"url": "https://github.com/appwrite/sdk-for-web"
20+
"url": "https://github.com/appwrite/sdk-for-react-native"
2121
},
2222
"scripts": {
2323
"build": "npm run build:types && npm run build:libs",
@@ -30,6 +30,7 @@
3030
"rollup": "2.75.4",
3131
"serve-handler": "6.1.0",
3232
"tslib": "2.4.0",
33+
"react-native-fs": "^2.20.0",
3334
"typescript": "4.7.2"
3435
},
3536
"dependencies": {

0 commit comments

Comments
 (0)