Skip to content

release

release #121

Workflow file for this run

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.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