Skip to content

Commit

Permalink
test now
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantu committed Dec 31, 2024
1 parent ed2baf9 commit e016a4b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/RELEASE_AND_PUBLISH_NPM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: Publish and Release
on:
push:
branches:
- workflow # Triggers the workflow on pushes to the main branch

on:
workflow_dispatch: # This workflow can be manually triggered through GitHub's UI.
- workflow # Triggers the workflow on pushes to the workflow branch
workflow_dispatch: # Allows manual triggering of the workflow

permissions:
contents: write # Grants permission to modify repository contents.
contents: write # Grants permission to modify repository contents

jobs:
build:
Expand All @@ -35,7 +33,7 @@ jobs:
# Increment version (patch by default; change to minor/major if needed)
NEW_VERSION=$(npm version patch --no-git-tag-version)
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
echo "Updated version to $NEW_VERSION"
echo "Updated version to ${NEW_VERSION}"
- name: Commit and Push New Version
env:
Expand All @@ -51,8 +49,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git tag ${{ env.NEW_VERSION }}
git push origin ${{ env.NEW_VERSION }}
git tag ${NEW_VERSION}
git push origin ${NEW_VERSION}
- name: Build package
run: npm run build
Expand Down Expand Up @@ -92,7 +90,7 @@ jobs:
- name: Upload Release Assets
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: build/
asset_name: expo-check-installed-apps-build.zip
asset_content_type: application/zip

0 comments on commit e016a4b

Please sign in to comment.