Skip to content

Commit

Permalink
Added publish to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas committed Dec 11, 2020
1 parent 2087c34 commit 5c90201
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/android-actions.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
name: Node.js CI

name: Android Build (Publish)
on: [push]

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -32,3 +27,11 @@ jobs:
- run: yarn install
- run: yarn run unittest
- run: yarn run generate
publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 5c90201

Please sign in to comment.