Skip to content

Commit

Permalink
Publish to the npm registry not GHP (#10)
Browse files Browse the repository at this point in the history
This will enable easy consumption from the open source ML tool app.
  • Loading branch information
microbit-matt-hillsdon authored Sep 24, 2024
1 parent 0521ccd commit 6e77b02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/header-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
release:
types: [created]
push:
branches: '*'
branches:
- "*"
paths:
- "header-gen/**"
- "**/header-gen.yml"
pull_request:
branches: '*'
branches:
- "*"
paths:
- "header-gen/**"
- "**/header-gen.yml"
Expand All @@ -29,7 +31,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: "https://npm.pkg.github.com"
registry-url: "https://registry.npmjs.org"
cache: npm
cache-dependency-path: header-gen/package-lock.json

Expand All @@ -56,4 +58,4 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'created'
working-directory: ./header-gen
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion header-gen/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@microbit-foundation/ml-header-generator",
"name": "@microbit/ml-header-generator",
"version": "0.4.0",
"description": "A simple TS script to generate a header blob for the ML runner",
"author": "Micro:bit Educational Foundation <[email protected]>",
Expand Down

0 comments on commit 6e77b02

Please sign in to comment.