diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2b33740..d81de826 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,16 +1,16 @@ name: ci on: push: - branches: '*' + branches: ['*'] pull_request: jobs: build-android: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '14' - run: npm i -g electrode-native - run: yarn --frozen-lockfile - working-directory: android/ @@ -21,9 +21,12 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '14' + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '12.0' - run: npm i -g electrode-native - run: yarn --frozen-lockfile - working-directory: ios/ diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 794c06c2..9d5cd32b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,15 +1,16 @@ name: publish on: push: - tags: v[0-9]+.[0-9]+.[0-9]+ + tags: ['v[0-9]+.[0-9]+.[0-9]+'] jobs: publish: + if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: '14' registry-url: 'https://registry.npmjs.org' - run: yarn --frozen-lockfile - run: npm publish --access public