Publish #40
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: | |
| workflow_dispatch: | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ssh-key: ${{ secrets.GH_DEPLOY_KEY }} | |
| - name: Setup Anchor | |
| uses: ./.github/actions/anchor | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Determine New Versions | |
| run: yarn changeset version | |
| - name: Update Cargo Version Numbers | |
| uses: ./.github/actions/sync | |
| - name: Publish Packages | |
| run: yarn publish | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }} | |
| - name: Tag Release | |
| run: yarn changeset tag | |
| - name: Push Changes | |
| uses: ./.github/actions/push | |
| with: | |
| branch: main | |
| message: Publish Packages | |
| user: changests[bot] |