Skip to content

Commit

Permalink
chore: workflow adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
emosheeep committed Feb 29, 2024
1 parent d4e92a5 commit 4e79182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
name: Release Package

on:
pull_request:
types:
- closed
branches: # target branch
- master
workflow_dispatch:

permissions:
pull-requests: write
contents: write

jobs:
release-package:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,7 +22,7 @@ jobs:
run_install: true

# consume changesets and create pr if it exists, otherwise publish package
- name: Create Release Pull Request or Publish to npm
- name: Publish to npm
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4e79182

Please sign in to comment.