From ee16b0a41f2170fb77ba21fd4b40afe773ea5b6b Mon Sep 17 00:00:00 2001 From: Ernest Prabhakar Date: Sun, 8 Oct 2023 16:35:39 -0700 Subject: [PATCH 1/4] npm run clean-git --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ccdc3645..42c6298e 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "build": "rimraf lib && eslint --fix \"{src,test}/**/*.ts\" && npm run ts", "check": "grep -e 'only' -e 'skip' test/*/* || echo 'Ran all tests'", "clean": "rimraf lib dist && rm -f *.log.* src/*.js src/*/*.js test/*.js test/*/*.js", + "clean-git": "git branch -D `git branch --merged | grep -v '\\*' | grep -v 'master'`", "debug": "echo 'Use `debugger;`\n' && mocha --inspect-brk --require ts-node/register --recursive test/**/*-spec.ts", "done": "npm run clean && npm run bs:all && npm run check && npm run tag && npm install && git commit -am 'update version'", "lint": "eslint --fix \"{src,test}/**/*.ts\"", From a330558b709253468ae88ec4a69aa0a81f8111a4 Mon Sep 17 00:00:00 2001 From: Ernest Prabhakar Date: Sun, 8 Oct 2023 16:37:17 -0700 Subject: [PATCH 2/4] Create GitHub Release --- .github/workflows/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4932bc10..954dc1a2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -43,4 +43,5 @@ jobs: provenance: true - if: ${{ steps.npm-publish.outputs.type == 'published' }} run: echo "Version changed!" - \ No newline at end of file + - name: Create GitHub Release + uses: ncipollo/release-action@v1.13.0 From d31e6ddc0e3b80244f77a251ed9d33eff2fbe744 Mon Sep 17 00:00:00 2001 From: Ernest Prabhakar Date: Sun, 8 Oct 2023 16:43:15 -0700 Subject: [PATCH 3/4] Delete unused configs --- .editorconfig | 12 ------------ actions.yml | 20 -------------------- save-commands.json | 6 ------ typings.json | 6 ------ 4 files changed, 44 deletions(-) delete mode 100644 .editorconfig delete mode 100644 actions.yml delete mode 100644 save-commands.json delete mode 100644 typings.json diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 5760be58..00000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/actions.yml b/actions.yml deleted file mode 100644 index 9be2e18c..00000000 --- a/actions.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: "GitHub Actions Test Mocha" -on: - pull_request: - branches: - - master - - zoasophy - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: 'Install Node' - uses: actions/setup-node@v1 - - name: Install mocha - run: npm install -g mocha - - name: Install dependencies - run: npm install - - name: "Run Test" - run: mocha test-mocha.test.js diff --git a/save-commands.json b/save-commands.json deleted file mode 100644 index 52b28115..00000000 --- a/save-commands.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "commands": [ - "src/**/*.ts : npm test", - "test/**/*.ts : npm test" - ] -} diff --git a/typings.json b/typings.json deleted file mode 100644 index 50262bca..00000000 --- a/typings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "dependencies": { - "inquirer": "registry:npm/inquirer#1.0.0+20160723033700", - "minimist": "registry:npm/minimist#1.0.0+20160723033700" - } -} From c874be665beedaf9ca5d5a0364e1a73d86dc8a32 Mon Sep 17 00:00:00 2001 From: Ernest Prabhakar Date: Sun, 8 Oct 2023 16:44:18 -0700 Subject: [PATCH 4/4] separate release action --- .github/workflows/node.js.yml | 2 -- .github/workflows/release.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 954dc1a2..dfa36801 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -43,5 +43,3 @@ jobs: provenance: true - if: ${{ steps.npm-publish.outputs.type == 'published' }} run: echo "Version changed!" - - name: Create GitHub Release - uses: ncipollo/release-action@v1.13.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..80b59ca0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - name: Create Release + uses: ncipollo/release-action@v1