Skip to content

release

release #6

Workflow file for this run

name: release
on:
- workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Setup Git
run: |
git config user.name "GitHub Bot"
git config user.email "gituser@example.com"
- run: pnpm install
- name: Version
shell: bash
run: pnpm nx affected --target=version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag last-release
shell: bash
run: |
git tag -f last-release
git push origin last-release --force