Skip to content

Commit

Permalink
release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jan 4, 2022
1 parent 8c7f8ec commit 6d1c446
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 24 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Get version & asign
id: get_version
run: |
variable=$(jq --raw-output '.version' package.json)
variable=$(jq --raw-output '.version' package.json).$(date +%s)
echo ::set-output name=version::$variable
- name: Publish releases
Expand All @@ -35,6 +35,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish NPM
run: npm publish --access public
run: |
npm version --git-tag-version=false ${{ steps.get_version.outputs.version }}
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
86 changes: 65 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"author": "Garlic-Team",
"license": "ISC",
"dependencies": {
"chalk": "^5.0.0",
"commander": "^8.3.0",
"github-clone-repo": "^1.0.1",
"hyttpo": "^0.3.2",
"mv": "^2.1.1",
"ora": "^6.0.1"
"ora": "^6.0.1",
"prompts": "^2.4.2"
},
"devDependencies": {
"@esbuild-plugins/node-resolve": "^0.1.4",
Expand Down

0 comments on commit 6d1c446

Please sign in to comment.