Skip to content

Commit 10c2d58

Browse files
committed
Merge branch 'develop' of github.com:bytesonus/gotham-node into develop
2 parents 3ed615a + 2463c3c commit 10c2d58

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ jobs:
2424
uses: thebongy/version-check@v1
2525
with:
2626
file: package.json
27+
failBuild: false
2728
id: version_check
2829

30+
- name: Bump package.json version (staging)
31+
if: github.ref == 'refs/heads/staging'
32+
run: npm -no-git-tag-version version v${{ steps.version_check.outputs.rawVersion }}-beta
33+
2934
- name: Install dependencies
3035
run: npm ci
3136

@@ -36,12 +41,18 @@ jobs:
3641
run: npm run build
3742

3843
- name: Create tarball
39-
run: npm pack
44+
run: |
45+
npm pack
46+
47+
- name: Rename tar (staging)
48+
if: github.ref == 'refs/heads/staging'
49+
run: mv *.tgz juno-node-${{ steps.version_check.outputs.rawVersion }}.tgz
50+
4051

4152
- name: Upload Artifact
4253
uses: actions/upload-artifact@v2
4354
with:
44-
name: juno-node-${{ steps.version_check.outputs.releaseVersion }}
55+
name: juno-node-${{ steps.version_check.outputs.rawVersion }}
4556
path: ./juno-node-${{ steps.version_check.outputs.rawVersion }}.tgz
4657

4758
# Publish release on push to master
@@ -71,7 +82,7 @@ jobs:
7182
uses: actions/create-release@latest
7283
with:
7384
tag_name: ${{ steps.version_check.outputs.releaseVersion }}
74-
release_name: juno-node-${{ steps.version_check.outputs.releaseVersion }}
85+
release_name: ${{ steps.version_check.outputs.releaseVersion }}
7586
prerelease: false
7687
env:
7788
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -120,14 +131,14 @@ jobs:
120131
- name: Download Artifact
121132
uses: actions/download-artifact@v2
122133
with:
123-
name: juno-node-${{ steps.version_check.outputs.releaseVersion }}
134+
name: juno-node-${{ steps.version_check.outputs.rawVersion }}
124135

125136
- name: Publish Release
126137
id: create_release
127138
uses: actions/create-release@latest
128139
with:
129140
tag_name: ${{ steps.version_check.outputs.releaseVersion }}
130-
release_name: juno-node-${{ steps.version_check.outputs.releaseVersion }}
141+
release_name: ${{ steps.version_check.outputs.releaseVersion }}
131142
prerelease: true
132143
env:
133144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "juno-node",
3-
"version": "0.0.3",
3+
"version": "0.1.1",
44
"description": "",
55
"keywords": [],
66
"main": "dist/juno-node.cjs.js",
@@ -12,7 +12,7 @@
1212
"author": "thebongy <[email protected]>",
1313
"repository": {
1414
"type": "git",
15-
"url": ""
15+
"url": "https://github.com/bytesonus/juno-node"
1616
},
1717
"license": "MIT",
1818
"engines": {

0 commit comments

Comments
 (0)