Skip to content

Commit

Permalink
patch: modified deployment yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
zerothebahdman committed Mar 29, 2024
1 parent a9c669d commit 3fb96c5
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
name: Publish to npm
name: Publish package to NPM registry

# on:
# workflow_run:
# workflows: [CI]
# branches: [main]
# types: [completed]

on:
workflow_run:
workflows: [CI]
branches: [main]
types: [completed]
push:
branches:
- release
pull_request:
branches:
- release

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -34,5 +42,5 @@ jobs:
with:
publish: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3fb96c5

Please sign in to comment.