Skip to content

Commit adde5ae

Browse files
committed
Commit new @next version on prepublish
1 parent 7dfad46 commit adde5ae

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/prerelease.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,20 @@ jobs:
6262
- name: package
6363
run: yarn package
6464

65+
# bump version & commit it
66+
- run: npm version prerelease --preid=dev --no-git-tag-version
67+
- name: setup git
68+
run: |
69+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
70+
git config user.name "$GITHUB_ACTOR"
71+
- name: commit new version to develop
72+
run: |
73+
git add -A
74+
git commit -m "Bump version for @next release"
75+
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6578
# deploy to npm
66-
- run: |
67-
npm version prerelease --preid=dev --no-git-tag-version
68-
npm publish --access public --tag next
79+
- run: npm publish --access public --tag next
6980
env:
7081
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exoframe",
3-
"version": "6.1.5-dev",
3+
"version": "6.1.5-dev.1",
44
"description": "Exoframe is a self-hosted tool that allows simple one-command deployments using Docker",
55
"main": "dist/index.js",
66
"repository": "git@github.com:exoframejs/exoframe.git",

0 commit comments

Comments
 (0)