Skip to content

Commit

Permalink
chore: adjust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emosheeep committed Feb 10, 2024
1 parent 5c8d2b8 commit e163ad7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
release-package:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
defaults:
run:
working-directory: workspaces/plugin
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -29,7 +32,6 @@ jobs:
- name: Version Package
id: versioning
run: |
cd workspaces/plugin
npx changeset version
echo "::set-output name=tag::v$(node -pe "require('./package.json').version")"
git restore .
Expand All @@ -41,7 +43,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
cwd: workspaces/plugin
publish: npx changeset publish
commit: "chore: release ${{ steps.versioning.outputs.tag }}"
title: "chore: release ${{ steps.versioning.outputs.tag }}"

0 comments on commit e163ad7

Please sign in to comment.