feat: tolgee platform client #6
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 client prerelease | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main, release] | |
| pull_request: | |
| jobs: | |
| publish-client-prerelease: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: "${{ secrets.TOLGEE_MACHINE_PAT }}" | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc | |
| # client folder | |
| - name: install npm dependencies | |
| run: npm ci | |
| working-directory: ./client | |
| - name: update version and build | |
| run: | | |
| npm run update-version -- 0.0.0-prerelease.$(git rev-parse --short HEAD) | |
| npm run build | |
| working-directory: ./client | |
| - name: publish | |
| run: npm publish --tag prerelease | |
| working-directory: ./client |