Skip to content

Commit

Permalink
automate publishing with provenance (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Mar 18, 2024
1 parent 6a4e725 commit 7819c3e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
issues: write
repository-projects: write
deployments: write
packages: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -38,6 +46,9 @@ jobs:
run: npm ci

- name: Create Release Pull Request
uses: changesets/action@master
uses: changesets/[email protected]
with:
publish: npm run changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,8 @@
"hooks": {
"pre-commit": "lint-staged"
}
},
"publishConfig": {
"provenance": true
}
}

0 comments on commit 7819c3e

Please sign in to comment.