Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: '20.x'
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@11 --registry=https://registry.npmjs.org
- run: npm ci
- run: npm run build
- run: npm publish
- run: npm publish --allow-directory=all
# For now we only publish on tags here and assume the version number is already correct.
# If we change this then we need to automate updating the version number.
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down
14 changes: 14 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
access=public

min-release-age=7
min-release-age-exclude[]=@microbit/*
min-release-age-exclude[]=@microbit-foundation/*

# root here means this project's package.json
allow-git=root
allow-remote=root
allow-file=root
allow-directory=root

strict-allow-scripts=true

engine-strict=true
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
],
"license": "MIT",
"author": "Micro:bit Educational Foundation <package-help@microbit.org>",
"allowScripts": {
"esbuild": true,
"fsevents": true
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
Loading