Skip to content

Commit

Permalink
Update Release Workflow To Grab Version Automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
BellCubeDev committed Apr 22, 2024
1 parent d410923 commit 5f025e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ jobs:
SECONDARY_TAG: ${{ github.event.release.prerelease == true && startsWith(github.event.release.tag_name, '0.') && '--tag latest' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4


- name: Set package.json Version Field
uses: BellCubeDev/update-package-version-by-release-tag@v2

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest

Expand Down Expand Up @@ -58,7 +62,7 @@ jobs:



- uses: jossef/action-set-json-field@v2
- uses: jossef/action-set-json-field@v2.1
name: "Change Package Name for GitHub"
with:
file: package.json
Expand All @@ -73,5 +77,3 @@ jobs:
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 5f025e2

Please sign in to comment.