diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c40d867..d9c10c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,8 @@ jobs: - name: Setup uses: ./.github/actions/setup - # - name: Run unit tests - # run: yarn test --maxWorkers=2 --coverage + - name: Run unit tests + run: yarn test --maxWorkers=2 --coverage build-library: runs-on: ubuntu-latest @@ -50,7 +50,7 @@ jobs: - name: Build package run: yarn prepare - build-web: + deploy: runs-on: ubuntu-latest steps: - name: Checkout @@ -59,6 +59,10 @@ jobs: - name: Setup uses: ./.github/actions/setup - - name: Build example for Web - run: | - yarn example expo export --platform web + - name: Initialize the NPM config + run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Deploy package to NPM + run: yarn release --ci diff --git a/.gitignore b/.gitignore index 67f3212..5220dd0 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ node_modules/ npm-debug.log yarn-debug.log yarn-error.log +.npmrc # BUCK buck-out/