Skip to content

docs: test commit one #11

docs: test commit one

docs: test commit one #11

Workflow file for this run

name: Dry Run
on:
pull_request:
branches:
- master
jobs:
pre-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with :
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: Semantic Release dry run
id: semantic
run: |
OUTPUT=$(unset GITHUB_ACTIONS && npx [email protected] --dry-run --no-ci --branches "${{ github.head_ref }}")
VERSION=$(echo "$OUTPUT" | grep -o "The next release version is [0-9]*\.[0-9]*\.[0-9]*" | awk '{print $6}')
echo "::set-output name=version::$VERSION"
- name: Use the version
run: echo "The version is ${{ steps.semantic.outputs.version }}"