Skip to content

Commit d4eadf7

Browse files
committed
Fixup workflows npm registry and auth
1 parent 4814a0f commit d4eadf7

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ concurrency:
2222

2323
permissions:
2424
contents: read
25+
packages: read
2526

2627
jobs:
2728
build:
@@ -51,6 +52,8 @@ jobs:
5152
submodules: true
5253

5354
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
55+
env:
56+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5457
with:
5558
node-version-file: package.json
5659
registry-url: https://npm.pkg.github.com
@@ -169,6 +172,8 @@ jobs:
169172
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170173

171174
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
175+
env:
176+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172177
with:
173178
node-version-file: package.json
174179
registry-url: https://npm.pkg.github.com

.github/workflows/tpip.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818

1919
permissions:
2020
contents: read
21+
packages: read
2122

2223
jobs:
2324
report:
@@ -36,8 +37,12 @@ jobs:
3637
ref: ${{ github.head_ref }}
3738

3839
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3942
with:
4043
node-version: '20'
44+
registry-url: https://npm.pkg.github.com
45+
always-auth: true
4146
cache: 'yarn'
4247

4348
- name: Install dependencies

scripts/download-tools.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
import { ArchiveFileAsset, Downloadable, Downloader, GitHubReleaseAsset, WebFileAsset } from '@open-cmsis-pack/vsce-helper';
20-
import { arch } from 'process';
2120
import { PackageJson } from 'type-fest';
2221

2322
type CmsisPackageJson = PackageJson & {
@@ -53,7 +52,7 @@ const pyocd : Downloadable = new Downloadable(
5352
const reqVersion = json?.cmsis?.pyocd;
5453
if (reqVersion === undefined) {
5554
console.warn('No pyOCD version specified in package.json');
56-
return undefined
55+
return undefined;
5756
}
5857
const { repo, owner, version } = splitGitReleaseVersion(reqVersion, 'pyocd', 'pyOCD');
5958
const releaseAsset = new GitHubReleaseAsset(

0 commit comments

Comments
 (0)