Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossyAtom46 authored Oct 24, 2024
1 parent 9f27780 commit 8733aa6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Electron workflow
name: Electron Workflow

on:
push:
Expand Down Expand Up @@ -45,10 +45,20 @@ jobs:
# Checkout the code
- uses: actions/checkout@v4

# Create release with source code only
# Create a new Git tag
- name: Create Git Tag
id: tag
run: |
TAG_NAME=v1.${{ github.run_number }}
git tag $TAG_NAME
git push origin $TAG_NAME
echo "::set-output name=TAG_NAME::$TAG_NAME"
# Create GitHub Release with the new tag
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.TAG_NAME }}
files: |
**/*.js
**/*.json
Expand All @@ -58,4 +68,4 @@ jobs:
## Changelog
$(git log -1 --pretty=format:"%h - %s (%an, %ad)")
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8733aa6

Please sign in to comment.