Skip to content

Commit

Permalink
Merge branch 'main' into chore/fix-dist-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
npty authored Aug 13, 2024
2 parents 07b4757 + efd52cd commit ed97ffc
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 ed97ffc

Please sign in to comment.