Skip to content

Commit 84a7250

Browse files
sebjacobschrisrooschrislo
committed
ci: change CI to publish to GitHub package registry
* Use github npm registry. * We can use the GITHUB_TOKEN that is made available by default in a GitHub Action as the NODE_AUTH_TOKEN, although we need to add the `packages: write` permission to the Action. Co-authored-by: Chris Roos <[email protected]> Co-authored-by: Chris Lowis <[email protected]>
1 parent 7e25af4 commit 84a7250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
cache: 'npm'
6161
node-version-file: '.nvmrc'
62-
registry-url: 'https://registry.npmjs.org'
62+
registry-url: "https://npm.pkg.github.com"
6363

6464
- uses: ./.github/actions/install-dependencies
6565

@@ -82,7 +82,7 @@ jobs:
8282
- name: Publish scratch-gui
8383
run: npm publish --access=public --tag="${{steps.npm_tag.outputs.npm_tag}}" --workspace=@scratch/scratch-gui
8484
env:
85-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
85+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
8686

8787
- name: Push to develop
8888
shell: bash

0 commit comments

Comments
 (0)