From 6a0727d39dedb3f867baab5a4d7e0f891e4c127e Mon Sep 17 00:00:00 2001 From: johelder Date: Sun, 15 Jun 2025 20:24:19 -0300 Subject: [PATCH] ci: update github actions workflow - uncomment unit tests execution - rename 'build-web' job to 'deploy' - add steps to initialize npm config and deploy package to npm - add .npmrc to .gitignore --- .github/workflows/ci.yml | 16 ++++++++++------ .gitignore | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) 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/