From 2d4dee85166b60bb17bf4057ba35fd1497fca327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:11:49 +0100 Subject: [PATCH] Add PAT & disable husky on CI --- .github/workflows/assign-pr.yml | 2 ++ .github/workflows/dev-release.yml | 2 ++ .github/workflows/main.yml | 6 ++++++ .github/workflows/prepare-release.yml | 7 ++++++- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/assign-pr.yml b/.github/workflows/assign-pr.yml index 37b228b..b4528f3 100644 --- a/.github/workflows/assign-pr.yml +++ b/.github/workflows/assign-pr.yml @@ -8,6 +8,8 @@ jobs: assign_creator: if: ${{ github.actor != 'dependabot[bot]' }} runs-on: ubuntu-22.04 + env: + HUSKY: 0 steps: - name: Assign PR to creator uses: toshimaru/auto-author-assign@ebd30f10fb56e46eb0759a14951f36991426fed0 # v2.1.0 diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index 242e7a3..1a50bc0 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -7,6 +7,8 @@ jobs: release: if: ${{ github.event.label.name == 'release dev tag' }} runs-on: ubuntu-22.04 + env: + HUSKY: 0 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a48456d..387a430 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,8 @@ on: [pull_request] jobs: lint: runs-on: ubuntu-22.04 + env: + HUSKY: 0 steps: - uses: actions/checkout@v4 - name: Setup PNPM @@ -17,6 +19,8 @@ jobs: test: runs-on: ubuntu-22.04 + env: + HUSKY: 0 steps: - uses: actions/checkout@v4 - name: Setup PNPM @@ -42,6 +46,8 @@ jobs: build: runs-on: ubuntu-22.04 + env: + HUSKY: 0 steps: - uses: actions/checkout@v4 - name: Setup PNPM diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index c90c831..150a360 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -11,8 +11,12 @@ jobs: release: name: Prepare release with Changesets runs-on: ubuntu-22.04 + env: + HUSKY: 0 steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.PAT }} - name: Setup PNPM uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 with: @@ -25,5 +29,6 @@ jobs: commit: Release to npm publish: "pnpm publish:ci" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Use private access token so Github can trigger another workflow from this one + GITHUB_TOKEN: ${{ secrets.PAT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}