Skip to content

Commit c32e021

Browse files
Update publish.yml
1 parent c01ad14 commit c32e021

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,14 @@ on:
88
types: [ created ]
99

1010
jobs:
11-
setup:
11+
build:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 18
1818
registry-url: https://registry.npmjs.org/
19-
- name: Git setup
20-
if: success()
21-
run: |
22-
git config --local user.email "action@github.com"
23-
git config --local user.name "GitHub Action"
24-
25-
build:
26-
needs: setup
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v3
3019
- run: npm i
3120
- run: npm run build
3221

@@ -35,6 +24,14 @@ jobs:
3524
runs-on: ubuntu-latest
3625
steps:
3726
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 18
30+
registry-url: https://registry.npmjs.org/
31+
- name: Git setup
32+
run: |
33+
git config --local user.email "action@github.com"
34+
git config --local user.name "GitHub Action"
3835
- run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
3936
- run: git add .
4037
- run: git commit -m "Release v${{ github.event.release.tag_name }}"

0 commit comments

Comments
 (0)