Skip to content

Commit

Permalink
Merge pull request #353 from saleor/update-main-workflow
Browse files Browse the repository at this point in the history
Add PAT & disable husky on CI
  • Loading branch information
krzysztofzuraw authored Mar 1, 2024
2 parents 4049fd4 + 2d4dee8 commit 174d454
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/assign-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,6 +19,8 @@ jobs:

test:
runs-on: ubuntu-22.04
env:
HUSKY: 0
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
Expand All @@ -42,6 +46,8 @@ jobs:

build:
runs-on: ubuntu-22.04
env:
HUSKY: 0
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 174d454

Please sign in to comment.