Skip to content

Commit

Permalink
added script to remove tag
Browse files Browse the repository at this point in the history
  • Loading branch information
haouarihk committed Jun 24, 2024
1 parent da9f6ad commit aa103ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
"dev": "npm run build:css && node esbuild.config.mjs",
"build": "npm run build:css && node esbuild.config.mjs production",
"version": "node version-bump.mjs",
"version:go": "node version-bump.mjs --go",
"version:go": "node ./scripts/version-bump.mjs --go",
"eslint": "eslint --fix ./src/**/*.{js,jsx,ts,tsx,json}",
"build:css": "postcss ./src/css/global.css -o styles.css",
"dev:css": "postcss ./src/css/global.css -o styles.css --watch",
"prettier:check": "prettier --check \"**/*.{ts,tsx,js,md,mdx,css,yaml}\"",
"prettier:format": "prettier --write \"**/*.{ts,tsx,js,md,mdx,css,yaml}\""
"prettier:format": "prettier --write \"**/*.{ts,tsx,js,md,mdx,css,yaml}\"",
"remove-tag": "node ./scripts/remove-tag.js"
},
"keywords": [],
"author": "",
Expand Down
6 changes: 6 additions & 0 deletions scripts/remove-tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');

execSync('git tag -d ' + process.argv[2]);
execSync('git push origin :refs/tags/' + process.argv[2]);
File renamed without changes.

0 comments on commit aa103ad

Please sign in to comment.