Skip to content

Commit 6d1c446

Browse files
committed
release workflow
1 parent 8c7f8ec commit 6d1c446

File tree

3 files changed

+72
-24
lines changed

3 files changed

+72
-24
lines changed

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Get version & asign
2525
id: get_version
2626
run: |
27-
variable=$(jq --raw-output '.version' package.json)
27+
variable=$(jq --raw-output '.version' package.json).$(date +%s)
2828
echo ::set-output name=version::$variable
2929
3030
- name: Publish releases
@@ -35,6 +35,8 @@ jobs:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636

3737
- name: Publish NPM
38-
run: npm publish --access public
38+
run: |
39+
npm version --git-tag-version=false ${{ steps.get_version.outputs.version }}
40+
npm publish --access public
3941
env:
4042
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

package-lock.json

+65-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"author": "Garlic-Team",
1717
"license": "ISC",
1818
"dependencies": {
19+
"chalk": "^5.0.0",
1920
"commander": "^8.3.0",
2021
"github-clone-repo": "^1.0.1",
2122
"hyttpo": "^0.3.2",
2223
"mv": "^2.1.1",
23-
"ora": "^6.0.1"
24+
"ora": "^6.0.1",
25+
"prompts": "^2.4.2"
2426
},
2527
"devDependencies": {
2628
"@esbuild-plugins/node-resolve": "^0.1.4",

0 commit comments

Comments
 (0)