-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 862 Bytes
/
deploy_to_npmjs.yml
File metadata and controls
36 lines (28 loc) · 862 Bytes
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
# This workflow creates an npm package and deploys it to npmjs
name: Deploy to npmjs
on: workflow_dispatch
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install nvm
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install
nvm use
- name: Build and Deploy to npmjs
run: |
yarn install
yarn build
yarn build:expo-plugin
yarn pack
yarn config set npmAuthToken ${NPM_TOKEN}
yarn npm publish