release #96
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: | |
| inputs: | |
| versionType: | |
| type: choice | |
| description: 'Version type to publish' | |
| options: | |
| - latest | |
| - next | |
| required: true | |
| default: "latest" | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| always-auth: true | |
| node-version: 20 | |
| cache: 'yarn' | |
| scope: '@lingui' | |
| - name: Install dependencies if needed | |
| run: yarn install | |
| - name: Build packages | |
| run: yarn release:build | |
| - name: Install npm CLI | |
| run: yarn global add npm | |
| - name: Publishing packages | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: yarn release:${{github.event.inputs.versionType}} |