Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish configuration #8

Merged
merged 1 commit into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .semaphore/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: v1.0
name: Publish
blocks:
- name: Publish
task:
jobs:
- name: NPM publish
commands:
- checkout
- git submodule init
- git submodule update
- 'wget https://dl.google.com/android/repository/commandlinetools-linux-6514223_latest.zip -O ~/android-commandline-tools.zip '
- mkdir -p ~/android-sdk/cmdline-tools/
- unzip ~/android-commandline-tools.zip -d ~/android-sdk/cmdline-tools
- 'export PATH=$PATH:~/android-sdk/cmdline-tools/tools/bin'
- yes | sdkmanager "ndk;21.3.6528147"
- 'export PATH=$PATH:~/android-sdk/ndk/21.3.6528147/'
- sem-version node 12
- cache restore
- npm install
- cache store
- npm install
- npm publish --access public
secrets:
- name: npmjs
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
5 changes: 5 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ blocks:
- cache store
- npm run build --if-present
- npm test
promotions:
- name: NPM publish
pipeline_file: publish.yml
auto_promote:
when: (branch = 'master' OR tag =~ '.*') AND result = 'passed'
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.