Skip to content

Commit

Permalink
Merge pull request #43 from passageidentity/workflow_fix
Browse files Browse the repository at this point in the history
Workflow fix
  • Loading branch information
SinaSeylani authored Oct 21, 2024
2 parents be4bf4a + 8189572 commit 3491328
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
name: Publish React Native Package

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to publish from'
required: true
default: 'main'
repository_dispatch:
types: [publish]

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest

steps:
- name: Checkout Code
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
Expand All @@ -23,9 +15,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'

- name: Log in to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: npm ci
run: npm install

- name: Publish to npm
run: npm publish
Expand Down

0 comments on commit 3491328

Please sign in to comment.