Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin PELCAT committed Aug 2, 2023
1 parent 8c9ee1e commit f8d2e97
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 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: Create Github Release

on:
push:
branches:
- master

jobs:
create_release:
name: 'Create release'
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Get Version from Package.json
id: get_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }} # Use the version from package.json as the tag_name
release_name: Release ${{ steps.get_version.outputs.version }} # Use the version from package.json as the release_name
body: This is the release body. # Add release notes or any description here
draft: false
prerelease: false
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ytdl-utils-cli",
"version": "0.5.2",
"version": "0.5.3",
"description": "",
"main": "./dist/index.js",
"bin": {
Expand Down Expand Up @@ -33,16 +33,16 @@
"fluent-ffmpeg": "^2.1.2",
"readline": "^1.3.0",
"slugify": "^1.6.6",
"ytdl-core": "^4.11.4",
"ytdl-core": "^4.11.5",
"ytpl": "^2.3.0"
},
"devDependencies": {
"@types/clear": "^0.1.2",
"@types/cli-progress": "^3.11.0",
"@types/figlet": "^1.5.5",
"@types/figlet": "^1.5.6",
"@types/fluent-ffmpeg": "^2.1.21",
"@types/node": "^18.15.13",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"typescript": "^5.1.6"
}
}
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@
dependencies:
"@types/node" "*"

"@types/figlet@^1.5.5":
version "1.5.5"
resolved "https://registry.yarnpkg.com/@types/figlet/-/figlet-1.5.5.tgz#da93169178f0187da288c313ab98ab02fb1e8b8c"
integrity sha512-0sMBeFoqdGgdXoR/hgKYSWMpFufSpToosNsI2VgmkPqZJgeEXsXNu2hGr0FN401dBro2tNO5y2D6uw3UxVaxbg==
"@types/figlet@^1.5.6":
version "1.5.6"
resolved "https://registry.yarnpkg.com/@types/figlet/-/figlet-1.5.6.tgz#fd6e71c48ffa83953aaf401c8ff179c2a5fabc9f"
integrity sha512-AOdn9cKJGXpqfHeif16xeGMwWefB4nsOyxkdRMpc+PEP3nUxzu3psJfIqhjrCNW4Sejt5i6rISWmEwK0sw03mA==

"@types/fluent-ffmpeg@^2.1.21":
version "2.1.21"
Expand Down Expand Up @@ -399,10 +399,10 @@ ts-node@^10.9.1:
v8-compile-cache-lib "^3.0.1"
yn "3.1.1"

typescript@^5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==
typescript@^5.1.6:
version "5.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==

uri-js@^4.2.2:
version "4.4.1"
Expand Down Expand Up @@ -433,10 +433,10 @@ yn@3.1.1:
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==

ytdl-core@^4.11.4:
version "4.11.4"
resolved "https://registry.yarnpkg.com/ytdl-core/-/ytdl-core-4.11.4.tgz#0ee2bd04d8effa7b8762a3ba0e3d038e37dc10f2"
integrity sha512-tsVvqt++B5LSTMnCKQb4H/PFBewKj7gGPJ6KIM5gOFGMKNZj4qglGAl4QGFG8cNPP6wY54P80FDID5eN2di0GQ==
ytdl-core@^4.11.5:
version "4.11.5"
resolved "https://registry.yarnpkg.com/ytdl-core/-/ytdl-core-4.11.5.tgz#8cc3dc9e4884e24e8251250cfb56313a300811f0"
integrity sha512-27LwsW4n4nyNviRCO1hmr8Wr5J1wLLMawHCQvH8Fk0hiRqrxuIu028WzbJetiYH28K8XDbeinYW4/wcHQD1EXA==
dependencies:
m3u8stream "^0.8.6"
miniget "^4.2.2"
Expand Down

0 comments on commit f8d2e97

Please sign in to comment.