Skip to content

Commit

Permalink
fix: merge fetch and publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Sep 27, 2023
1 parent b3d3a61 commit 4a6c012
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ on:
type: string

jobs:
fetch:
publish:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,13 +43,6 @@ jobs:
- name: Fetch Deps
run: yarn install --frozen-lockfile

publish:
runs-on: ubuntu-latest
needs: fetch
permissions:
contents: write
id-token: write
steps:
- name: Set git username and email
run: |
git config --local user.email "action@github.com"
Expand Down

0 comments on commit 4a6c012

Please sign in to comment.