diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d59674b..96ccd00 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,6 +1,8 @@ name: pr -on: pull_request +on: + pull_request: + workflow_dispatch: jobs: build: @@ -21,3 +23,22 @@ jobs: tag: v2.1.5-procursus6 - name: Build run: yarn install + - name: Rename + run: | + mv astgen-linux-x64 astgen-linux + mv astgen-linux-arm64 astgen-linux-arm + mv astgen-macos-x64 astgen-macos + mv astgen-macos-arm64 astgen-macos-arm + mv astgen-win-x64.exe astgen-win.exe + - name: Make executable + run: | + chmod +x astgen-macos + chmod +x astgen-macos-arm + chmod +x astgen-linux + chmod +x astgen-linux-arm + gzexe astgen-linux + gzexe astgen-linux-arm + ls -lh + ./astgen-linux --version + mv astgen-linux~ astgen-linux-uncompressed + mv astgen-linux-arm~ astgen-linux-arm-uncompressed diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb648da..56b1ff2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,6 +52,10 @@ jobs: chmod +x astgen-macos-arm chmod +x astgen-linux chmod +x astgen-linux-arm + gzexe astgen-linux + gzexe astgen-linux-arm + mv astgen-linux~ astgen-linux-uncompressed + mv astgen-linux-arm~ astgen-linux-arm-uncompressed - name: Set next release version id: taggerFinal uses: anothrNick/github-tag-action@1.61.0 @@ -68,3 +72,5 @@ jobs: astgen-macos-arm astgen-linux astgen-linux-arm + astgen-linux-uncompressed + astgen-linux-arm-uncompressed diff --git a/.gitignore b/.gitignore index 2a03d71..c28607c 100644 --- a/.gitignore +++ b/.gitignore @@ -110,11 +110,14 @@ dist .idea/ test/obj astgen-linux-x64 +astgen-linux-x64~ astgen-macos-arm64 astgen-macos-x64 astgen-win-x64.exe astgen-linux +astgen-linux~ astgen-linux-arm64 +astgen-linux-arm64~ astgen-macos-arm astgen-macos astgen-win.exe diff --git a/package.json b/package.json index 1dde3eb..a5ffe82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@joernio/astgen", - "version": "3.1.0", + "version": "3.2.0", "description": "Generate JS/TS AST in json format with Babel", "exports": "./index.js", "keywords": [ @@ -14,7 +14,7 @@ "author": "Max Leuthaeuser", "license": "Apache-2.0", "dependencies": { - "@babel/parser": "^7.22.4", + "@babel/parser": "^7.22.5", "typescript": "^5.1.3", "yargs": "^17.7.2" }, diff --git a/yarn.lock b/yarn.lock index 6e6f189..4e66e4a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26,10 +26,10 @@ resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.18.4.tgz" integrity sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow== -"@babel/parser@^7.22.4": - version "7.22.4" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.4.tgz#a770e98fd785c231af9d93f6459d36770993fb32" - integrity sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA== +"@babel/parser@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.5.tgz#721fd042f3ce1896238cf1b341c77eb7dee7dbea" + integrity sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q== "@babel/types@7.19.0", "@babel/types@^7.18.2": version "7.19.0"