Skip to content

Commit

Permalink
changed pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mudit2108 committed Nov 6, 2024
1 parent 3142030 commit 61266b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 61266b4

Please sign in to comment.