Skip to content

Release

Release #3

Workflow file for this run

name: Release
on:
workflow_run:
workflows: [ Test ]
branches: [ main ]
types:
- completed
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: cache-node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build the CLI
run: npm run build
# - name: Run npm release
# run: npm run release -- -d
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GIT_AUTHOR_NAME: Tolgee Machine
# GIT_AUTHOR_EMAIL: [email protected]
# GIT_COMMITTER_NAME: Tolgee Machine
# GIT_COMMITTER_EMAIL: [email protected]