Skip to content

Commit

Permalink
Pull version from src module.json instead of dist
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSpiker committed Dec 8, 2021
1 parent 2f5b4c0 commit 0e0147d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/get-version.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
var fs = require('fs');
console.log(JSON.parse(fs.readFileSync('dist/module.json', 'utf8')).version);
console.log(JSON.parse(fs.readFileSync('src/module.json', 'utf8')).version);
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './dist/module.json, ./module.zip'
tag: latest
commit: main

# Create a release for this specific version
- name: Create Version Release
Expand All @@ -69,5 +68,4 @@ jobs:
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './dist/module.json, ./module.zip'
tag: ${{ steps.get-version.outputs.version }}
commit: main
tag: ${{ steps.get-version.outputs.version }}

0 comments on commit 0e0147d

Please sign in to comment.