diff --git a/.github/actions/node-release/action.yml b/.github/actions/node-release/action.yml index a9a4047..f2e62be 100644 --- a/.github/actions/node-release/action.yml +++ b/.github/actions/node-release/action.yml @@ -3,7 +3,7 @@ description: 'Transpiles and publishes the Node package from the codegen artifac inputs: npm-registry-token: description: token to authenticate to npmjs.org - required: true + required: false mode: description: supporte values are 'release' and 'dry-run' required: true diff --git a/.github/actions/rust-release/action.yml b/.github/actions/rust-release/action.yml index ac0bcd7..89b4b70 100644 --- a/.github/actions/rust-release/action.yml +++ b/.github/actions/rust-release/action.yml @@ -3,7 +3,7 @@ description: 'Builds the Rust crate from the codegen artifact' inputs: cargo-registry-token: description: token to authenticate to crates.io - required: true + required: false mode: description: supporte values are 'release' and 'dry-run' required: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 10682b8..db68ed7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,12 +7,6 @@ on: type: string description: supporte values are 'release' and 'dry-run' required: true - cargo-registry-token: - type: string - required: true - npm-registry-token: - type: string - required: true jobs: rust-release: @@ -29,7 +23,7 @@ jobs: - uses: ./.github/actions/rust-release with: - registry-token: ${{ inputs.cargo-registry-token }} + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} mode: ${{ inputs.mode }} node-release: @@ -46,5 +40,5 @@ jobs: - uses: ./.github/actions/node-release with: - registry-token: ${{ inputs.npm-registry-token }} + registry-token: ${{ secrets.NPM_REGISTRY_TOKEN }} mode: ${{ inputs.mode }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45942dc..31d4518 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,8 +20,6 @@ jobs: uses: ./.github/workflows/publish.yml with: mode: "release" - cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} - npm-registry-token: ${{ secrets.NPM_REGISTRY_TOKEN }} build-haskell: needs: [generate]