Skip to content

Commit 6e77b02

Browse files
Publish to the npm registry not GHP (#10)
This will enable easy consumption from the open source ML tool app.
1 parent 0521ccd commit 6e77b02

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/header-gen.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ on:
44
release:
55
types: [created]
66
push:
7-
branches: '*'
7+
branches:
8+
- "*"
89
paths:
910
- "header-gen/**"
1011
- "**/header-gen.yml"
1112
pull_request:
12-
branches: '*'
13+
branches:
14+
- "*"
1315
paths:
1416
- "header-gen/**"
1517
- "**/header-gen.yml"
@@ -29,7 +31,7 @@ jobs:
2931
uses: actions/setup-node@v4
3032
with:
3133
node-version: '20'
32-
registry-url: "https://npm.pkg.github.com"
34+
registry-url: "https://registry.npmjs.org"
3335
cache: npm
3436
cache-dependency-path: header-gen/package-lock.json
3537

@@ -56,4 +58,4 @@ jobs:
5658
if: github.event_name == 'release' && github.event.action == 'created'
5759
working-directory: ./header-gen
5860
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

header-gen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@microbit-foundation/ml-header-generator",
2+
"name": "@microbit/ml-header-generator",
33
"version": "0.4.0",
44
"description": "A simple TS script to generate a header blob for the ML runner",
55
"author": "Micro:bit Educational Foundation <[email protected]>",

0 commit comments

Comments
 (0)