|
9 | 9 | version: |
10 | 10 | description: 'Version to bump to, e.g. 2.2.0' |
11 | 11 | required: true |
| 12 | +env: |
| 13 | + NODE_VERSION: 22 |
12 | 14 |
|
13 | 15 | permissions: |
14 | 16 | contents: write |
|
35 | 37 | - name: Setup Node |
36 | 38 | uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 |
37 | 39 | with: |
38 | | - node-version: '24' |
| 40 | + node-version: ${{ env.NODE_VERSION }} |
39 | 41 |
|
40 | 42 | - name: Resolve version |
41 | 43 | id: version |
@@ -66,16 +68,18 @@ jobs: |
66 | 68 | exit 1 |
67 | 69 | fi |
68 | 70 |
|
69 | | - - name: Bump root package |
70 | | - env: |
71 | | - VERSION: ${{ steps.version.outputs.version }} |
72 | | - run: npm version "$VERSION" --no-git-tag-version --allow-same-version |
| 71 | + - name: Install dependencies |
| 72 | + run: npm ci --ignore-scripts --no-audit --no-fund |
73 | 73 |
|
74 | | - - name: Bump git-proxy-cli package |
75 | | - working-directory: packages/git-proxy-cli |
| 74 | + - name: Bump root and workspace packages |
76 | 75 | env: |
77 | 76 | VERSION: ${{ steps.version.outputs.version }} |
78 | | - run: npm version "$VERSION" --no-git-tag-version --allow-same-version |
| 77 | + run: | |
| 78 | + npm version "$VERSION" \ |
| 79 | + --no-git-tag-version \ |
| 80 | + --allow-same-version \ |
| 81 | + --workspaces \ |
| 82 | + --include-workspace-root |
79 | 83 |
|
80 | 84 | - name: Open version bump PR |
81 | 85 | env: |
|
91 | 95 | git config user.email "github-actions[bot]@users.noreply.github.com" |
92 | 96 |
|
93 | 97 | git checkout -b "$BRANCH" |
94 | | - git add package.json package-lock.json packages/git-proxy-cli/package.json |
| 98 | + git add package.json package-lock.json packages/*/package.json |
95 | 99 | git commit -m "chore: bump git-proxy and git-proxy-cli to $VERSION" |
96 | | - git push -u origin "$BRANCH" --force |
| 100 | + git push -u origin "$BRANCH" --force-with-lease |
97 | 101 |
|
98 | 102 | if [ -n "$MILESTONE_URL" ]; then |
99 | 103 | SOURCE_LINE="Triggered by closing milestone **$MILESTONE_TITLE** ($MILESTONE_URL)." |
|
0 commit comments