Skip to content

Commit

Permalink
chore(scripts): add packages:* scripts to the root package.json (#2389)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schultz <pschultz@pobox.com>
  • Loading branch information
schultzp2020 authored Oct 18, 2024
1 parent 218c4f0 commit a7e4620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
title: 'chore(release): version packages on ${{ github.ref_name }} branch'
commit: 'chore(release): version packages on ${{ github.ref_name }} branch'
# We want to make sure an update-to-date yarn lockfile is committed
version: yarn changeset version && yarn install
publish: yarn run build --concurrency=75% --filter=@janus-idp/* && yarn changeset publish
version: yarn run packages:version
publish: yarn run packages:publish
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"new": "janus-cli new --do-not-edit-packages",
"prepare": "husky install",
"export-dynamic": "turbo run export-dynamic",
"versions:bump": "backstage-cli versions:bump && find . -name 'package.json' ! -path '*/node_modules/*' -exec sed -i -e '/devDependencies/,/\\\\}/{ s/\\\"\\\\^/\\\"/; }' {} ; && yarn install && yarn run export-dynamic --no-cache -- -- --clean"
"versions:bump": "backstage-cli versions:bump && find . -name 'package.json' ! -path '*/node_modules/*' -exec sed -i -e '/devDependencies/,/\\\\}/{ s/\\\"\\\\^/\\\"/; }' {} ; && yarn install && yarn run export-dynamic --no-cache -- -- --clean",
"packages:version": "changeset version && yarn install",
"packages:publish": "turbo build --concurrency=75% --filter=@janus-idp/* && changeset publish"
},
"workspaces": {
"packages": [
Expand Down

0 comments on commit a7e4620

Please sign in to comment.