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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Setup node uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: .nvmrc cache: 'yarn' scope: '@lingui' - name: Install dependencies if needed env: YARN_ENABLE_HARDENED_MODE: "1" run: yarn install - name: Build packages run: yarn release:build - name: Install latest npm CLI run: | npm install -g npm@11.10.0 npm --version - name: Publishing packages env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: yarn release:${{github.event.inputs.versionType}} reindex-docs: needs: publish if: github.event.inputs.versionType == 'latest' uses: ./.github/workflows/reindex-docs.yml secrets: inherit