Skip to content

Commit

Permalink
perf: removed manual workflow temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
huniafatima-arbi committed Jul 8, 2024
1 parent b2bcb54 commit 9cf8791
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/dry-run.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
name: Dry Run
on:
pull_request:
branches:
- "master"

jobs:
release-type:
name: Try dry run
runs-on: ubuntu-latest
steps:
- name: Release to npm/Github
run: npx [email protected] --dry-run
# env:
# GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}

name: Dry Run
on:
pull_request:
branches:
Expand All @@ -18,11 +36,11 @@ jobs:
- name: Semantic Release dry run
id: semantic
run: |
OUTPUT=$(unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci --branches "${{ github.head_ref }}")
OUTPUT=$(unset GITHUB_ACTIONS && run: npx semantic-release@19.0.3 --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"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Use the version
run: echo "The version is ${{ steps.semantic.outputs.version }}"
run: echo "The version is ${{ steps.semantic.outputs.version }}"

0 comments on commit 9cf8791

Please sign in to comment.