-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (46 loc) · 1.14 KB
/
ci.yml
File metadata and controls
50 lines (46 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Publish Package
on:
push:
branches:
- master
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm run lint
publish-npm:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: rm ./example -r
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
publish-expo:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: expo/expo-github-action@v5
with:
expo-version: 3.x
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
- run: npm install
working-directory: ./example
- run: expo publish
working-directory: ./example