From fd0acd64a694a7cebef162c25e423fc552137ef7 Mon Sep 17 00:00:00 2001 From: Mason Goetz Date: Fri, 10 May 2024 21:58:58 -0600 Subject: [PATCH] =?UTF-8?q?Revert=20"build(npm):=20bREAKING=20npm=20deps?= =?UTF-8?q?=20to=20latest,=20node=20to=2020.13.1,=20release=20wor=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 26 ++++++++++++--- .nvmrc | 2 +- package.json | 62 +++++++++++++++++------------------ 3 files changed, 53 insertions(+), 37 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18f196a3f..1e79c6bc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v2 with: fetch-depth: 0 # gives semantic-release access to all previous commits token: ${{ secrets.GH_TOKEN }} # admin token - name: Cache node_modules - uses: actions/cache@v4 + uses: actions/cache@v2 env: cache-name: cache-node-modules with: @@ -28,17 +28,33 @@ jobs: ${{ runner.OS }}-${{ env.cache-name }}- ${{ runner.OS }}- - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v1 with: - node-version: 20.13.1 + node-version: 16.15.0 - name: Install dependencies run: yarn + # - name: Compile TS => JS + # run: yarn build - name: Package code run: yarn package + # - name: Bundle code + # uses: tool3/ncc@master + # with: + # github_token: ${{ secrets.GH_TOKEN }} + # src: 'src/index.ts' + # branch: 'main' + # ncc_args: '--source-map, --license, licenses.txt' + # - name: Upload artifact + # uses: actions/upload-artifact@v3 + # with: + # name: dist + # path: dist/ - name: Commit dist uses: EndBug/add-and-commit@v9 with: default_author: github_actions - message: "Commiting for release" + message: 'Commiting for release' - name: Cut release run: yarn release + # white space + \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 297d47ba0..c818c7b00 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.13.1 \ No newline at end of file +16.15.0 \ No newline at end of file diff --git a/package.json b/package.json index 886855d2f..702ce12d8 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,44 @@ { "author": "Mason Goetz ", "dependencies": { - "@actions/core": "^1.10.1", - "@actions/github": "^6.0.0", - "@aws-sdk/client-s3": "^3.574.0", - "@slack/web-api": "^7.0.4", - "date-fns": "^3.6.0", + "@actions/core": "^1.8.0", + "@actions/github": "^5.0.1", + "@aws-sdk/client-s3": "^3.58.0", + "@slack/web-api": "^6.7.1", + "date-fns": "^2.28.0", "memory-cache": "^0.2.0", - "node-fetch": "^3.3.2", - "winston": "^3.13.0" + "node-fetch": "^2.6.7", + "winston": "^3.7.2" }, "description": "Notify requested PR reviewers via slack so they actually know that you want them to look at something because people don't check email.", "devDependencies": { - "@commitlint/cli": "^19.3.0", - "@commitlint/config-conventional": "^19.2.2", - "@semantic-release/changelog": "^6.0.3", - "@semantic-release/commit-analyzer": "^12.0.0", + "@commitlint/cli": "^16.2.4", + "@commitlint/config-conventional": "^16.2.4", + "@semantic-release/changelog": "^6.0.1", + "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", - "@semantic-release/github": "^10.0.3", - "@semantic-release/npm": "^12.0.1", - "@types/memory-cache": "^0.2.5", - "@types/node": "^20.12.11", - "@types/node-fetch": "^2.6.11", - "@typescript-eslint/parser": "^7.8.0", - "@vercel/ncc": "^0.38.1", - "commitizen": "^4.3.0", - "conventional-changelog-conventionalcommits": "^8.0.0", - "eslint": "^9.2.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-prettier": "^5.1.3", - "husky": "^9.0.11", - "jest": "^29.7.0", + "@semantic-release/github": "^8.0.4", + "@semantic-release/npm": "^9.0.1", + "@types/memory-cache": "^0.2.2", + "@types/node": "^16.10.5", + "@types/node-fetch": "^2.6.1", + "@typescript-eslint/parser": "^5.8.1", + "@vercel/ncc": "^0.31.1", + "commitizen": "^4.2.3", + "conventional-changelog-conventionalcommits": "^4.6.3", + "eslint": "^8.5.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-prettier": "^4.0.0", + "husky": "^7.0.4", + "jest": "^27.2.5", "js-yaml": "^4.1.0", - "lint-staged": "^15.2.2", - "prettier": "^3.2.5", - "semantic-release": "^23.1.1", - "ts-jest": "^29.1.2", - "typescript": "^5.4.5" + "lint-staged": "^12.4.1", + "prettier": "^2.5.1", + "semantic-release": "^19.0.2", + "ts-jest": "^27.1.2", + "typescript": "^4.4.4" }, "license": "MIT", "lint-staged": {