Skip to content

Commit

Permalink
chore(ci): Remove input for mock release
Browse files Browse the repository at this point in the history
  • Loading branch information
manferlo81 committed Sep 17, 2024
1 parent 7158cf7 commit 433638d
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ on:
- main

workflow_dispatch:
inputs:
mock-release:
description: Mock release process
type: boolean
default: false

jobs:
job_lint:
Expand Down Expand Up @@ -118,7 +113,7 @@ jobs:
name: Create GitHub Release

runs-on: ubuntu-latest
if: ${{ inputs.mock-release || (github.ref_type == 'tag' && startsWith(github.ref_name,'v')) }}
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name,'v') }}
needs: job_ci

permissions:
Expand All @@ -129,20 +124,15 @@ jobs:
uses: actions/checkout@v4

- name: Create Release
if: ${{ !inputs.mock-release }}
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true

- name: Show mock message
if: inputs.mock-release
run: echo 'Create Release Mocked'

job_publish_to_npm:
name: Publish to npm registry

runs-on: ubuntu-latest
if: ${{ inputs.mock-release || (github.ref_type == 'tag' && startsWith(github.ref_name,'v')) }}
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name,'v') }}
needs: job_ci

steps:
Expand All @@ -162,20 +152,15 @@ jobs:
run: npm run build

- name: Publish package
if: ${{ !inputs.mock-release }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Show mock message
if: inputs.mock-release
run: echo 'Publish to npm Mocked'

job_publish_to_gpr:
name: Publish to GitHub Packages

runs-on: ubuntu-latest
if: ${{ inputs.mock-release || (github.ref_type == 'tag' && startsWith(github.ref_name,'v')) }}
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name,'v') }}
needs: job_ci

permissions:
Expand All @@ -199,11 +184,6 @@ jobs:
run: npm run build

- name: Publish package
if: ${{ !inputs.mock-release }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Show mock message
if: inputs.mock-release
run: echo 'Publish to GitHub Packages Mocked'

0 comments on commit 433638d

Please sign in to comment.