Skip to content

Commit c57d15d

Browse files
authored
Merge pull request #23 from github/fix-browser-tests
fix: OIDC npm publishing
2 parents 54c13c0 + e566b90 commit c57d15d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches: [main]
66

7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
79
permissions:
810
contents: write
911
pull-requests: write
@@ -21,20 +23,22 @@ jobs:
2123
with:
2224
node-version: 22
2325
cache: npm
24-
registry-url: https://registry.npmjs.org
25-
scope: '@github-ui'
26+
- name: Update npm
27+
run: npm update -g npm
2628
- run: npm ci
2729
- run: npm run build
2830
- name: Create release PR or publish
2931
id: changesets
3032
uses: changesets/action@v1
3133
with:
3234
version: npm run version-packages
33-
publish: npx changeset publish --provenance
35+
publish: npx changeset publish
3436
title: "chore: version packages"
3537
commit: "chore: version packages"
3638
env:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ''
41+
NPM_CONFIG_PROVENANCE: true
3842
- name: Report CI status on changeset PR
3943
if: steps.changesets.outputs.pullRequestNumber
4044
env:

packages/storybook-addon-performance-panel/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"url": "https://github.com/github/storybook-addon-performance-panel.git",
1212
"directory": "packages/storybook-addon-performance-panel"
1313
},
14+
"publishConfig": {
15+
"access": "public",
16+
"registry": "https://registry.npmjs.org/"
17+
},
1418
"keywords": [
1519
"storybook",
1620
"storybook-addon",

0 commit comments

Comments
 (0)