Skip to content

Commit

Permalink
feat: migrate to git-tags.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aspnxdd committed Jan 25, 2023
1 parent 5053cae commit a3cacf9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Get tag version
id: getdata
run: node git-tags.js
run: bash git-tags.sh

- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get tag version
id: getdata
run: node git-tags.js
run: bash git-tags.sh

- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
Expand Down
12 changes: 0 additions & 12 deletions git-tags.js

This file was deleted.

3 changes: 3 additions & 0 deletions git-tags.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
tag=$(git describe --abbrev=0)
echo "{\"version\":\"${tag}\"}" > version.json
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"dev": "bash git-tags.sh && next dev",
"build": "bash git-tags.sh && next build",
"start": "next start",
"lint": "npx eslint . --ext .ts,.tsx",
"tag": "node git-tags.js",
"tag": "bash git-tags.sh",
"format": "prettier --write \"./**/*.{tsx,ts,css}\"",
"prepare": "husky install"
},
Expand Down Expand Up @@ -54,7 +54,6 @@
"eslint": "8.32.0",
"git-semver-tags": "^4.1.1",
"eslint-config-next": "13.1.5",
"git-tags": "^0.2.4",
"husky": ">=8.0.3",
"lint-staged": ">=13.1.0",
"octicons-react": "link:@types/@primer/octicons-react",
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"v0.1.0"}
{"version":"v1.0.0"}

0 comments on commit a3cacf9

Please sign in to comment.