Skip to content

Commit 94fc91c

Browse files
authored
feat: switch to publish packages using trusted publishers instead of tokens (#91)
1 parent 8b200de commit 94fc91c

File tree

3 files changed

+29
-37
lines changed

3 files changed

+29
-37
lines changed

.github/actions/setup/action.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/deploy-storybook.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1010

1111
permissions:
1212
pages: write # to deploy to Pages
13+
contents: read
1314
id-token: write
1415

1516
jobs:
@@ -23,10 +24,20 @@ jobs:
2324
url: ${{ steps.deployment.outputs.page_url }}
2425

2526
steps:
26-
- name: Setup workspace
27-
uses: plexinc/react-lightning/.github/actions/setup@main
27+
- uses: actions/checkout@v4
2828
with:
29-
npm-token: ${{ secrets.NPM_TOKEN }}
29+
fetch-depth: 0
30+
persist-credentials: false
31+
32+
- uses: pnpm/action-setup@v4
33+
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version-file: package.json
37+
cache: "pnpm"
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile
3041

3142
- name: Build Storybook
3243
run: pnpm run build:storybook

.github/workflows/release-packages.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
concurrency: ${{ github.workflow }}-${{ github.ref }}
1212

1313
permissions:
14+
contents: read
1415
id-token: write
1516

1617
jobs:
@@ -23,10 +24,21 @@ jobs:
2324
published: ${{ steps.changesets.outputs.published }}
2425

2526
steps:
26-
- name: Setup workspace
27-
uses: plexinc/react-lightning/.github/actions/setup@main
27+
- uses: actions/checkout@v4
2828
with:
29-
npm-token: ${{ secrets.NPM_TOKEN }}
29+
fetch-depth: 0
30+
persist-credentials: false
31+
32+
- uses: pnpm/action-setup@v4
33+
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version-file: package.json
37+
cache: "pnpm"
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile
41+
shell: bash
3042

3143
- name: Create release pull request or publish
3244
id: changesets

0 commit comments

Comments
 (0)