Bump typedoc from 0.26.8 to 0.26.9 (#380) #8
Workflow file for this run
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: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| jobs: | |
| npm: | |
| strategy: | |
| matrix: | |
| package: [client] | |
| max-parallel: 1 | |
| fail-fast: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set Version | |
| uses: ./.github/actions/version | |
| with: | |
| version: ${{ github.ref }} | |
| manifest-file: ts-sdk/${{ matrix.package }}/package.json | |
| - name: Deploy npm | |
| uses: ./.github/actions/anchor | |
| with: | |
| run: | | |
| npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} && yarn | |
| yarn build ts-sdk/${{ matrix.package }} --output-style static | |
| cd ts-sdk/${{ matrix.package }} && npm publish --access public | |
| cargo: | |
| strategy: | |
| matrix: | |
| package: [client] | |
| max-parallel: 1 | |
| fail-fast: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set Version | |
| uses: ./.github/actions/version | |
| with: | |
| version: ${{ github.ref }} | |
| manifest-file: rust-sdk/${{ matrix.package }}/Cargo.toml | |
| - name: Deploy cargo | |
| uses: ./.github/actions/anchor | |
| with: | |
| run: | | |
| export CARGO_REGISTRY_TOKEN=${{ secrets.CRATES_TOKEN }} | |
| yarn build rust-sdk/${{ matrix.package }} --output-style static | |
| cd rust-sdk/${{ matrix.package }} && cargo publish --allow-dirty | |
| idl: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build idl | |
| uses: ./.github/actions/anchor | |
| with: | |
| run: | | |
| anchor build | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: idl | |
| path: target/idl/*.json | |
| if-no-files-found: error | |
| release: | |
| needs: [npm, cargo, idl] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: idl | |
| - name: Create Release Name | |
| id: name | |
| run: echo "NAME=SDK - $(basename ${{ github.ref_name }})" >> $GITHUB_OUTPUT | |
| - name: Create Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| name: ${{ steps.name.outputs.NAME }} | |
| generateReleaseNotes: true | |
| allowUpdates: true | |
| artifacts: idl.zip |