Skip to content

Commit

Permalink
🎨 Uses new action to fetch the package.json version
Browse files Browse the repository at this point in the history
  • Loading branch information
daschaa committed Jan 30, 2022
1 parent 50de339 commit 7c65693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Get Release Name
- name: Get Release name
id: set_release_name
run: |
version=`cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g'`
echo "🥳 Setting release version to: $version"
echo "::set-output name=current-version::$version"
uses: daschaa/[email protected]
- name: Build
run: |
npm i
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "billboard",
"description": "Displays text on the Mac menu bar",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"scripts": {
"mac": "react-native run-macos",
Expand Down

0 comments on commit 7c65693

Please sign in to comment.