Skip to content

Commit

Permalink
feat: publish created release (#51)
Browse files Browse the repository at this point in the history
# Description

<!-- "If applied, this commit will___ "-->

## Reason

<!-- Describe what and why these changes were necessary -->
  • Loading branch information
Couto authored Dec 29, 2024
1 parent 055642c commit 3aeeaa2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types: [published]

workflow_dispatch:
inputs:
version:
description: "Version tag that match the release"
required: true
type: string

jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
registry-url: "https://npm.pkg.github.com"
scope: "@${{ github.repository_owner }}"

- uses: robinraju/release-downloader@v1
with:
tag: ${{inputs.version}}

- run: ls
2 changes: 1 addition & 1 deletion .github/workflows/workflow-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Create Release

on:
workflow_call:
Expand Down

0 comments on commit 3aeeaa2

Please sign in to comment.