Skip to content

Commit

Permalink
chore(github-action): try to get the version right
Browse files Browse the repository at this point in the history
  • Loading branch information
tabris87 committed Mar 1, 2024
1 parent 81cf938 commit 9aa68d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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: Create Pre Release
name: Create Nightly Release

on:
push:
Expand Down Expand Up @@ -32,17 +32,17 @@ jobs:
- name: Set release names
id: set_names
run: |
echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV"
echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV"
- name: Create Pre Release
id: create_pre_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: "$version"
release_name: Pre-Release "$version"
tag_name: format('{0}_nightly', $version)
release_name: format('{0} {1}', Nightly-Release, $version)
body: |
Automatic generated pre-release with the latest features and bugfixes
Automatic generated nightly release with the latest features and bugfixes
draft: false
prerelease: true
path: deployments/journey_recorder_nightly_"$version".zip
path: format('deployments/journey_recorder_nightly_{0}.zip', $version)

0 comments on commit 9aa68d5

Please sign in to comment.