From 28064744241ae220d7df2969a440d7d576e33b43 Mon Sep 17 00:00:00 2001 From: Vatsal Rathod Date: Mon, 18 Nov 2024 13:33:11 +0530 Subject: [PATCH] github workflow updated --- .github/workflows/ci.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2417d1c..b4e8ecf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,24 +33,23 @@ jobs: run: yarn test --maxWorkers=2 --coverage build-and-release-library: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 + needs: [test] + steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup - uses: ./.github/actions/setup - - - name: Authenticate with npm - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - - # - name: Build package - # run: yarn prepare - - - name: Publish package - run: npm publish - # env: - # NODE_AUTH_TOKEN: ${{secrets.npm_token}} + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org' + - name: Build + run: | + npm ci + npm run-script build + npm publish + env: + NODE_ENV: "production" + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # build-android: # runs-on: ubuntu-latest