Skip to content

Commit

Permalink
Use provenance when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Oct 14, 2024
1 parent 476cfc0 commit f0dba40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/nine-jobs-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'homebridge-ring': patch
'ring-client-api': patch
---

Use `provenance` when publishing to npm
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: read
id-token: write # needed for provenance

jobs:
release:
name: Release
Expand All @@ -25,7 +29,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
cache: 'npm'

- name: Install Dependencies
Expand All @@ -38,3 +42,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_CHANGESETS }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit f0dba40

Please sign in to comment.