Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/turborepo-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
type: boolean

permissions:
id-token: write # Required for npm Trusted Publishing using OIDC
contents: write
pull-requests: write

Expand Down Expand Up @@ -142,6 +141,9 @@ jobs:
name: Publish to NPM
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
id-token: write # Required for npm Trusted Publishing using OIDC
needs: [build]
outputs:
version: ${{ steps.version.outputs.version }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/turborepo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ name: Release
env:
CARGO_PROFILE_RELEASE_LTO: true
HUSKY: "0"
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_TURBO_CLI: true # TODO: do we need this?

permissions:
id-token: write # Required for npm Trusted Publishing using OIDC
contents: write # Allow workflow to checkout code from the repository
pull-requests: write # Allows the PR for post-release to be created
checks: write # Allows posting check statuses for release PRs
Expand Down Expand Up @@ -387,6 +385,9 @@ jobs:
name: "Publish To NPM"
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
id-token: write # Required for npm Trusted Publishing using OIDC
# TODO: Add rust-smoke-test back to needs and if-condition when re-enabled.
needs: [stage, build-rust, js-smoke-test]
if: ${{ always() && needs.stage.result == 'success' && needs.build-rust.result == 'success' && needs.js-smoke-test.result == 'success' }}
Expand Down
Loading