Skip to content

Commit 6d7103c

Browse files
Onboard Renovate (#1272)
Extends the shared policy preset in microbit-foundation/renovate. CI-installed npm packages (theme package, deploy tooling, versioner, npm itself) are pinned as workflow env vars with renovate marker comments, which the preset's customManagers:githubActionsVersions manager understands natively.
1 parent d4ec16e commit 6d7103c

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ startsWith(github.ref, 'refs/tags/v') && 'release' || github.ref }}
1212
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/v') }}
1313

14+
env:
15+
# renovate: datasource=npm depName=npm
16+
NPM_VERSION: "11"
17+
# renovate: datasource=npm depName=@microbit-foundation/python-editor-v3-microbit registryUrl=https://npm.pkg.github.com
18+
THEME_VERSION: 0.2.0-dev.72
19+
# renovate: datasource=npm depName=@microbit-foundation/website-deploy-aws registryUrl=https://npm.pkg.github.com
20+
DEPLOY_AWS_VERSION: "0.6.0"
21+
# renovate: datasource=npm depName=@microbit-foundation/website-deploy-aws-config registryUrl=https://npm.pkg.github.com
22+
DEPLOY_AWS_CONFIG_VERSION: "0.9.0"
23+
# renovate: datasource=npm depName=@microbit-foundation/circleci-npm-package-versioner registryUrl=https://npm.pkg.github.com
24+
VERSIONER_VERSION: "1"
25+
1426
jobs:
1527
build:
1628
timeout-minutes: 15
@@ -36,11 +48,11 @@ jobs:
3648
node-version: 24.x
3749
cache: "npm"
3850
registry-url: "https://npm.pkg.github.com"
39-
- run: npm install -g npm@11 --registry=https://registry.npmjs.org
51+
- run: npm install -g npm@${{ env.NPM_VERSION }} --registry=https://registry.npmjs.org
4052
- run: npm ci
4153
env:
4254
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
- run: npm install --no-save @microbit-foundation/python-editor-v3-microbit@0.2.0-dev.72 @microbit-foundation/website-deploy-aws@0.6.0 @microbit-foundation/website-deploy-aws-config@0.9.0 @microbit-foundation/circleci-npm-package-versioner@1
55+
- run: npm install --no-save @microbit-foundation/python-editor-v3-microbit@${{ env.THEME_VERSION }} @microbit-foundation/website-deploy-aws@${{ env.DEPLOY_AWS_VERSION }} @microbit-foundation/website-deploy-aws-config@${{ env.DEPLOY_AWS_CONFIG_VERSION }} @microbit-foundation/circleci-npm-package-versioner@${{ env.VERSIONER_VERSION }}
4456
if: github.repository_owner == 'microbit-foundation'
4557
env:
4658
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["github>microbit-foundation/renovate"]
4+
}

0 commit comments

Comments
 (0)