Skip to content

Release

Release #43

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@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
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
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]