Skip to content

Commit

Permalink
automatically update package.json when publishing a new release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyTails committed Jan 27, 2024
1 parent 66d9cdf commit aea5af7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

permissions:
id-token: write
contents: write

jobs:
publish-npm:
Expand All @@ -25,6 +26,9 @@ jobs:
with:
version: 8

- run: pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version
working-directory: ./schemas

- run: pnpm install -r --frozen-lockfile

- run: pnpm run -r build
Expand All @@ -35,3 +39,8 @@ jobs:
working-directory: ./schemas
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: EndBug/add-and-commit@v9
with:
message: Bumps version of @kulupu-linku/sona to ${{ github.event.release.tag_name }}
add: schemas/package.json

0 comments on commit aea5af7

Please sign in to comment.