Skip to content

Commit

Permalink
fix(release): added tsc to release for npm and added main.js file to …
Browse files Browse the repository at this point in the history
…be available when releasing tag inside github
  • Loading branch information
Stradivario committed Dec 11, 2021
1 parent 57f831a commit 7c613a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- run: npm test --if-present
- run: git config --global user.email 'kristiqn.tachev@gmail.com'
- run: git config --global user.name "Kristiyan Tachev"
- run: npx tsc
- run: npm run build
- run: npm run publish-package
env:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: npm i -g @gapi/cli @zeit/ncc@0.22.1 pkg@4.4.7
- name: Build
run: npm run build-binary
- name: Build JS
run: npm run build
- name: Read package.json Version
uses: tyankatsu0105/read-package-version-actions@v1
id: version
Expand Down Expand Up @@ -66,3 +68,13 @@ jobs:
asset_path: ./binaries/firelink-macos
asset_name: firelink-macos
asset_content_type: application/octet-stream

- name: Upload JS to Releases
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main.js
asset_name: main.js
asset_content_type: text/javascript

0 comments on commit 7c613a1

Please sign in to comment.