Skip to content

Commit

Permalink
reuse context
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Feb 9, 2024
1 parent bfb80e7 commit 30a1fc4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/actions/node-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/rust-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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 }}
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 30a1fc4

Please sign in to comment.