Release #163
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| workflow_dispatch: # trigger manually | |
| inputs: | |
| publishCodeGenerate: | |
| description: Publish @dodoex/contract-call-generate | |
| required: false | |
| default: true | |
| type: boolean | |
| publishContractRequest: | |
| description: Publish @dodoex/contract-request | |
| required: false | |
| default: true | |
| type: boolean | |
| publishDODOContractRequest: | |
| description: Publish @dodoex/dodo-contract-request | |
| required: false | |
| default: true | |
| type: boolean | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.9.0] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Release package @dodoex/contract-call-generate | |
| if: ${{ inputs.publishCodeGenerate }} | |
| run: yarn workspace @dodoex/contract-call-generate release | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Release package @dodoex/contract-request | |
| if: ${{ inputs.publishContractRequest }} | |
| run: yarn workspace @dodoex/contract-request release | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Release package @dodoex/dodo-contract-request | |
| if: ${{ inputs.publishDODOContractRequest }} | |
| run: yarn workspace @dodoex/dodo-contract-request release | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |