From ec45ee3856f185943995d60a181987f936f2ea33 Mon Sep 17 00:00:00 2001 From: Subhankar Maiti Date: Tue, 13 May 2025 18:56:10 +0530 Subject: [PATCH] updated workflow --- .github/actions/npm-publish/action.yml | 5 +---- .github/workflows/npm-release.yml | 4 ---- package.json | 1 + yarn.lock | 6 +++--- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/actions/npm-publish/action.yml b/.github/actions/npm-publish/action.yml index 5c015708..93f2f08a 100644 --- a/.github/actions/npm-publish/action.yml +++ b/.github/actions/npm-publish/action.yml @@ -5,8 +5,6 @@ inputs: required: true version: required: true - require-build: - default: true release-directory: default: './' @@ -21,9 +19,8 @@ runs: uses: ./.github/actions/setup - name: Build package - if: inputs.require-build == 'true' shell: bash - run: yarn build + run: yarn ci - name: Publish release to NPM shell: bash diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index c92124af..3bbb71ec 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -3,9 +3,6 @@ name: Create npm and GitHub Release on: workflow_call: inputs: - require-build: - default: 'true' - type: string release-directory: default: './' type: string @@ -60,7 +57,6 @@ jobs: # Publish the release to our package manager - uses: ./.github/actions/npm-publish with: - require-build: ${{ inputs.require-build }} version: ${{ steps.get_version.outputs.version }} npm-token: ${{ secrets.npm-token }} release-directory: ${{ inputs.release-directory }} diff --git a/package.json b/package.json index c07b3af2..f7b8e629 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "lint": "eslint \"**/*.{js,ts,tsx}\"", "release": "release-it", "bootstrap": "cd example && npm ci", + "ci": "yarn install --immutable && yarn prepare", "clean": "del-cli lib out android/build example/android/build example/android/app/build example/ios/build", "prepare": "husky && bob build && rm -rf lib/*/package.json", "example:android": "cd example && npm run android", diff --git a/yarn.lock b/yarn.lock index 93a5e78a..0233d484 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13356,8 +13356,8 @@ __metadata: linkType: hard "react-native-paper@npm:^5.14.0": - version: 5.14.2 - resolution: "react-native-paper@npm:5.14.2" + version: 5.14.3 + resolution: "react-native-paper@npm:5.14.3" dependencies: "@callstack/react-theme-provider": ^3.0.9 color: ^3.1.2 @@ -13366,7 +13366,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: "*" - checksum: 44916c4f3a0962afdb272aec0d4db01203793b0e885e5f80fc07c49f9aa1bda3d010b00237396351addd916a774c9478a0076dc281536c461ec9c85668ce071f + checksum: 6083c84778f5f099e74237b6a362a6e6cbb19d9e35d1a0cf7f2df7e67c8368acd2d96e002315c98a2a9feca60dad15e1a9a094b43016e7c1dcbb150a18a8072f languageName: node linkType: hard