Skip to content

Commit

Permalink
update tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Oct 5, 2024
1 parent 9ecf01f commit cd5480c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
branches:
- '**'

env:
draft: true

Expand All @@ -16,7 +15,7 @@ jobs:
permissions: write-all
name: Dev Release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -28,11 +27,11 @@ jobs:

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

- name: Install dependencies
run: npm install

- name: Build files
run: npm run build

Expand All @@ -42,10 +41,9 @@ 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 }}"
tag_name: v${{ steps.package-version.outputs.current-version }}-${{ github.sha }}
draft: ${{ env.draft }}
prerelease: true
files: ./dist/*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Token for GitHub API
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cd5480c

Please sign in to comment.