Skip to content

Commit

Permalink
build: run version during hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
waynevanson committed Aug 23, 2023
1 parent e480fe1 commit 2962965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ jobs:
node-version: 18
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm turbo run build
- run: pnpm run version
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm exec turbo deploy
run: pnpm exec turbo build deploy
3 changes: 3 additions & 0 deletions packages/obsidian-mocks/release-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ module.exports = {
release: true,
releaseName: `${packageName}-${version}`,
},
hooks: {
'before:git:release': ['pnpm run version', 'git add --all'],
},
};

0 comments on commit 2962965

Please sign in to comment.