Skip to content

Commit aabdc99

Browse files
committed
Updating npm publish action for new OIDC npmjs authentication.
Also updated the packages to contain the correct repo url.
1 parent 160756e commit aabdc99

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/changesets-publish-npm-packages.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
# This makes the matrix of jobs to run one at a time.
1212
concurrency: ${{ github.workflow }}-${{ github.ref }}
1313

14+
permissions:
15+
id-token: write # Required for OIDC
16+
contents: read
17+
1418
jobs:
1519
# gets all publishable npm packages.
1620
fetch-package-info:
@@ -49,6 +53,7 @@ jobs:
4953
runs-on: ubuntu-latest
5054
needs: fetch-package-info
5155
permissions:
56+
id-token: write # Required for OIDC
5257
contents: write
5358
if: ${{ fromJSON(needs.fetch-package-info.outputs.matrix).count > 0 }}
5459
strategy:
@@ -72,10 +77,12 @@ jobs:
7277
node-version: "${{ steps.get_node_version.outputs.node_version }}"
7378
registry-url: 'https://registry.npmjs.org'
7479

80+
# Ensure npm 11.5.1 or later is installed for OIDC
81+
- name: Update npm
82+
run: npm install -g npm@latest
83+
7584
- name: Publish ${{ matrix.package.name }}
7685
working-directory: ${{ matrix.package.path }}
77-
env:
78-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7986
run: |
8087
npm install
8188
npm run build

Common/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
},
4545
"author": "Epic Games",
4646
"license": "MIT",
47+
"repository": {
48+
"type": "git",
49+
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure"
50+
},
4751
"publishConfig": {
4852
"access": "public"
4953
}

Frontend/library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"repository": {
4040
"type": "git",
41-
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git"
41+
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure"
4242
},
4343
"author": "Epic Games",
4444
"license": "MIT",

Frontend/ui-library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"repository": {
3636
"type": "git",
37-
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git"
37+
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure"
3838
},
3939
"author": "Epic Games",
4040
"license": "MIT",

Signalling/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
},
5151
"repository": {
5252
"type": "git",
53-
"url": "https://github.com/EpicGames/PixelStreamingInfrastructure.git"
53+
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure"
5454
}
5555
}

0 commit comments

Comments
 (0)