Skip to content

Commit

Permalink
release tag should include version
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Oct 5, 2024
1 parent a7332f5 commit 9ecf01f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ name: Dev Release

on:
push:
tags:
- "v*.*.*"
branches:
- main
pull_request:
tags:
- "v*.*.*"
branches:
- '**'

env:
draft: true

Expand All @@ -31,7 +28,7 @@ jobs:

- name: Get package version
id: package-version
uses: martinbeentjes/[email protected]
run: echo "PACKAGE_VERSION=$(node -p \"require('./package.json').version\")" >> $GITHUB_ENV

- name: Install dependencies
run: npm install
Expand All @@ -45,8 +42,10 @@ jobs:
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: "v${{ env.PACKAGE_VERSION }}-${{ github.sha }}"
name: "Release v${{ env.PACKAGE_VERSION }}-${{ github.sha }}"
draft: ${{ env.draft }}
files: ./dist/*.tar.gz
prerelease: true
files: ./dist/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Token for GitHub API

0 comments on commit 9ecf01f

Please sign in to comment.