Skip to content

Commit

Permalink
Add version saving step to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mahendra790 committed Dec 12, 2023
1 parent 764ff94 commit 92c48fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ jobs:
cache: pnpm
- name: install dependencies
run: pnpm install
- name: save new version
run: echo "version=cat package.json | jq -r '.version'" >> "$GITHUB_ENV"
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: Version Packages ${env.version}
title: Release ${env.version}
publish: pnpm ci:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 92c48fa

Please sign in to comment.