Skip to content

Commit d83b2da

Browse files
committed
chore: update GitHub Actions workflow to include provenance flag for npm publishing
1 parent d610d60 commit d83b2da

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
publish:
1717
name: Publish
1818
runs-on: ubuntu-latest
19-
environment: production
2019
permissions:
2120
contents: write
2221
id-token: write
@@ -35,7 +34,6 @@ jobs:
3534
uses: actions/setup-node@v4
3635
with:
3736
node-version: 20
38-
registry-url: "https://registry.npmjs.org"
3937

4038
- name: Install dependencies
4139
run: bun install
@@ -69,11 +67,11 @@ jobs:
6967
7068
- name: Publish to npm (dry run)
7169
if: inputs.dry_run == true
72-
run: bunx changeset publish --no-git-tag
70+
run: bunx changeset publish --no-git-tag --provenance
7371

7472
- name: Publish to npm
7573
if: steps.changesets.outputs.has_changesets == 'true' && inputs.dry_run == false
76-
run: bunx changeset publish
74+
run: bunx changeset publish --provenance
7775

7876
- name: Push tags
7977
if: steps.changesets.outputs.has_changesets == 'true' && inputs.dry_run == false

0 commit comments

Comments
 (0)