-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Move from git-tags to git-semver-tags
- Loading branch information
Showing
5 changed files
with
347 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,23 +9,18 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install dependencies | ||
run: yarn add git-semver-tags | ||
|
||
- name: Get tag version | ||
uses: satackey/[email protected] | ||
id: getdata | ||
with: | ||
# Edit the following line to install packages required to run your script. | ||
required-packages: git-tags | ||
script: | | ||
var gittags = require("git-tags"); | ||
var fs = require("fs"); | ||
gittags.get(function (err, tags) { | ||
if (err) throw err; | ||
const obj = { | ||
version: tags[0], | ||
}; | ||
fs.writeFileSync("version.json", JSON.stringify(obj), "utf8"); | ||
console.log(tags); | ||
}); | ||
run: node git-tags.js | ||
|
||
- name: Deploy to Vercel Action | ||
uses: BetaHuhn/deploy-to-vercel-action@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,23 +12,18 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install dependencies | ||
run: yarn add git-semver-tags | ||
|
||
- name: Get tag version | ||
uses: satackey/[email protected] | ||
id: getdata | ||
with: | ||
# Edit the following line to install packages required to run your script. | ||
required-packages: git-tags | ||
script: | | ||
var gittags = require("git-tags"); | ||
var fs = require("fs"); | ||
gittags.get(function (err, tags) { | ||
if (err) throw err; | ||
const obj = { | ||
version: tags[0], | ||
}; | ||
fs.writeFileSync("version.json", JSON.stringify(obj), "utf8"); | ||
console.log(tags); | ||
}); | ||
run: node git-tags.js | ||
|
||
- name: Deploy to Vercel Action | ||
uses: BetaHuhn/deploy-to-vercel-action@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.