diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb3c4be..71cb60d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,30 +37,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - fetch-depth: 0 # Ensures full git history for release-it - # Fetch all tags explicitly - - name: Fetch all tags - run: git fetch --tags - - # Set HEAD to the latest tag (to avoid symbolic ref issue) - - name: Set HEAD to latest tag - run: | - TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) - git checkout $TAG - - 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: Build package + # run: yarn prepare - - name: release package - run: yarn release-it + - name: Publish package + run: yarn publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} # build-android: # runs-on: ubuntu-latest diff --git a/package.json b/package.json index 92cdf02..78cc959 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gumlet/react-native-embed-player", - "version": "0.1.1", + "version": "0.1.2", "description": "Gumlet Embed player for react native", "source": "./src/index.tsx", "main": "./lib/commonjs/index.js", @@ -42,7 +42,7 @@ "lint": "eslint \"**/*.{js,ts,tsx}\"", "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib", "prepare": "bob build", - "release": "release-it" + "prepublishOnly": "bob build" }, "keywords": [ "react-native",