Skip to content

Commit

Permalink
chore: disable workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Aug 13, 2024
1 parent 9d59b9d commit 335f6c1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish to NPM

on:
workflow_dispatch:
pull_request:
branches:
- main
Expand All @@ -16,9 +15,9 @@ env:
jobs:
publish:
name: Publish to NPM
# if: >
# github.event.pull_request.merged == true &&
# github.event.pull_request.user.login == 'github-actions[bot]'
if: >
github.event.pull_request.merged == true &&
github.event.pull_request.user.login == 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -44,10 +43,11 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub Release
if: steps.check-changeset-files.outputs.has_changeset_files == 'false'
uses: changesets/action@v1
with:
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO: GH release is disabled for now because it's not working
# - name: Create GitHub Release
# if: steps.check-changeset-files.outputs.has_changeset_files == 'false'
# uses: changesets/action@v1
# with:
# createGithubReleases: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 335f6c1

Please sign in to comment.