Skip to content

Commit

Permalink
Publish with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed Nov 22, 2023
1 parent fd3ff05 commit db58ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
permissions:
id-token: write
name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -31,8 +33,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
publish: yarn build && yarn publish:all
env:
NPM_CONFIG_PROVENANCE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"version:prepare": "yarn changeset version",
"version:check": "yarn changeset status",
"publish:all": "yarn changeset publish",
"release": "yarn build && yarn version:check && yarn publish:all",
"postinstall": "husky install"
},
"workspaces": [
Expand Down

0 comments on commit db58ae1

Please sign in to comment.