Skip to content

Commit 2e34caf

Browse files
authored
OIDC trusted publishing (#1971)
* Enable OIDC trusted publishing with provenance for npm packages * Add package name comments to trigger full publish for OIDC testing
1 parent b028671 commit 2e34caf

File tree

39 files changed

+44
-5
lines changed

39 files changed

+44
-5
lines changed

.github/workflows/push.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write # Needed for git push operations
12+
id-token: write # Required for OIDC trusted publishing
1013
steps:
1114
- uses: actions/checkout@v2 # checkout visx + this commit
1215
with:
@@ -55,13 +58,11 @@ jobs:
5558
- name: Release
5659
if: github.repository_owner == 'airbnb'
5760
# the following configurations are needed for lerna to
58-
# - have git credentials for commiting tags
59-
# - have correct npm credentials for publishing (yarn does not work)
61+
# - have git credentials for committing tags
62+
# - use OIDC trusted publishing for npm (no token required)
6063
run: |
6164
git config user.name github-actions
6265
git config user.email [email protected]
63-
yarn npm logout
64-
npm config set '//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}'
6566
yarn build:release
6667
env:
6768
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

packages/visx-annotation/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/annotation
12
export { default as Connector } from './components/Connector';
23
export { default as Label } from './components/Label';
34
export { default as HtmlLabel } from './components/HtmlLabel';

packages/visx-axis/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/axis
12
export { default as Axis } from './axis/Axis';
23
export type { AxisProps } from './axis/Axis';
34
export { default as AxisLeft } from './axis/AxisLeft';

packages/visx-bounds/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/bounds
12
import type { WithBoundingRectsProps as WithBoundingRectsPropsType } from './enhancers/withBoundingRects';
23

34
export { default as withBoundingRects } from './enhancers/withBoundingRects';

packages/visx-brush/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/brush
12
export { default as Brush } from './Brush';
23

34
export type * from './types';

packages/visx-chord/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/chord
12
export { default as Chord } from './Chord';
23
export { default as Ribbon } from './Ribbon';
34

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/clip-path
12
export { default as ClipPath } from './clip-paths/ClipPath';
23
export { default as CircleClipPath } from './clip-paths/CircleClipPath';
34
export { default as RectClipPath } from './clip-paths/RectClipPath';

packages/visx-curve/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/curve
12
export {
23
curveBasis,
34
curveBasisClosed,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/delaunay
12
export { default as delaunay } from './delaunay';
23
export { default as voronoi } from './voronoi';
34
export { default as Polygon } from './components/Polygon';

packages/visx-drag/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @visx/drag
12
export { default as Drag } from './Drag';
23
export { default as useDrag } from './useDrag';
34
export { default as raise } from './util/raise';

0 commit comments

Comments
 (0)