Skip to content

Commit

Permalink
Merge pull request #11 from adobe/publishLibrary
Browse files Browse the repository at this point in the history
build: update version in package.json when publishing
  • Loading branch information
marshallpete authored Oct 31, 2023
2 parents 95e3e26 + 27e7ed3 commit 9fc9bcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@ jobs:

- name: Update Package Version
run: |
# Update the version in package.json
tag=${{ steps.extract_tag.outputs.tag }}
sed -i "s/\"version\": \".*\"/\"version\": \"$tag\"/" package.json
# Commit the changes
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add package.json
git commit -m "Update package version to $tag"
git push
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: yarn install

Expand Down

0 comments on commit 9fc9bcb

Please sign in to comment.