From c44be22d0bdc111a630a891945557ae7fcedc80b Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Wed, 24 Jul 2024 20:48:36 -0700 Subject: [PATCH 1/4] Upgrade husky to v9 --- .husky/pre-commit | 3 --- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 0c9455bd3..eb08b3826 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm run pre-commit && git add dist/ diff --git a/package-lock.json b/package-lock.json index 4b8d91859..abad4c256 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.1", - "husky": "^7.0.0", + "husky": "^9.1.1", "jest": "^29.7.0", "npm-run-all": "^4.1.5", "prettier": "^3.0.3", @@ -4045,15 +4045,15 @@ } }, "node_modules/husky": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz", - "integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==", + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.1.tgz", + "integrity": "sha512-fCqlqLXcBnXa/TJXmT93/A36tJsjdJkibQ1MuIiFyCCYUlpYpIaj2mv1w+3KR6Rzu1IC3slFTje5f6DUp2A2rg==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -10325,9 +10325,9 @@ "dev": true }, "husky": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz", - "integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==", + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.1.tgz", + "integrity": "sha512-fCqlqLXcBnXa/TJXmT93/A36tJsjdJkibQ1MuIiFyCCYUlpYpIaj2mv1w+3KR6Rzu1IC3slFTje5f6DUp2A2rg==", "dev": true }, "ignore": { diff --git a/package.json b/package.json index b3033b703..4753a8b05 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "style:write": "run-p --continue-on-error --aggregate-output format:write lint", "pre-commit": "run-s style:write test build", "test": "jest", - "prepare": "husky install" + "prepare": "husky" }, "jest": { "preset": "ts-jest", @@ -57,7 +57,7 @@ "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.1", - "husky": "^7.0.0", + "husky": "^9.1.1", "jest": "^29.7.0", "npm-run-all": "^4.1.5", "prettier": "^3.0.3", From 3c6a5c5d52f06160ef466bf72f5d4900a75c6056 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Fri, 26 Jul 2024 18:10:15 -0700 Subject: [PATCH 2/4] empty commit From b9f8f75f36623dc5a23bbe9937e6ffdd4b47928b Mon Sep 17 00:00:00 2001 From: Joel Ambass Date: Fri, 13 Sep 2024 13:35:58 +0200 Subject: [PATCH 3/4] Add workflow file for publishing releases to immutable action package This workflow file publishes new action releases to the immutable action package of the same name as this repo. This is part of the Immutable Actions project which is not yet fully released to the public. First party actions like this one are part of our initial testing of this feature. --- .../workflows/publish-immutable-actions.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-immutable-actions.yml diff --git a/.github/workflows/publish-immutable-actions.yml b/.github/workflows/publish-immutable-actions.yml new file mode 100644 index 000000000..1e02a3a15 --- /dev/null +++ b/.github/workflows/publish-immutable-actions.yml @@ -0,0 +1,22 @@ +name: 'Publish Immutable Action Version' + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + packages: write + + steps: + - name: Checking out + uses: actions/checkout@v4 + - name: Publish + id: publish + uses: actions/publish-immutable-action@0.0.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} From c0ceea4835a72c7d5f0ecfcba9f86dfc73e766a7 Mon Sep 17 00:00:00 2001 From: Joel Ambass Date: Mon, 16 Sep 2024 17:19:19 +0200 Subject: [PATCH 4/4] Upgrade IA Publish --- .github/workflows/publish-immutable-actions.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-immutable-actions.yml b/.github/workflows/publish-immutable-actions.yml index 1e02a3a15..87c020728 100644 --- a/.github/workflows/publish-immutable-actions.yml +++ b/.github/workflows/publish-immutable-actions.yml @@ -2,7 +2,7 @@ name: 'Publish Immutable Action Version' on: release: - types: [created] + types: [published] jobs: publish: @@ -17,6 +17,4 @@ jobs: uses: actions/checkout@v4 - name: Publish id: publish - uses: actions/publish-immutable-action@0.0.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + uses: actions/publish-immutable-action@0.0.3