Skip to content

Commit

Permalink
ci: granual action test
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Jun 4, 2024
1 parent 0f8b7c8 commit 594a632
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: _ Run Release
on:
workflow_call:
inputs:
debug:
type: boolean
default: false
dry-run:
type: boolean
default: false
secrets:
NPM_TOKEN:
required: true

jobs:
release:
name: Run release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- run: npm ci --ignore-scripts ${{ inputs.dry-run }}
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --debug ${{ inputs.debug }} --dry-run ${{ inputs.dry-run }}
21 changes: 21 additions & 0 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: '[Manual] Release'
on:
workflow_dispatch:
inputs:
debug:
description: 'Debug'
type: boolean
default: true
dry-run:
description: 'Dry run'
type: boolean
default: true

jobs:
release:
name: Release
uses: ./.github/workflows/_release.yml
with:
debug: ${{ inputs.debug }}
dry-run: ${{ inputs.dry-run }}
secrets: inherit

0 comments on commit 594a632

Please sign in to comment.