Skip to content

Commit

Permalink
github workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsaljrathod authored Nov 18, 2024
1 parent 3c162f5 commit 2806474
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2806474

Please sign in to comment.