Skip to content

Commit b783474

Browse files
committed
remove build
1 parent c27959f commit b783474

File tree

1 file changed

+1
-41
lines changed

1 file changed

+1
-41
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -56,44 +56,4 @@ jobs:
5656
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
5757
env:
5858
PR_URL: ${{github.event.pull_request.html_url}}
59-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
60-
61-
npm-publish-build:
62-
needs: build
63-
runs-on: ubuntu-latest
64-
steps:
65-
- uses: actions/download-artifact@v6
66-
with:
67-
name: build
68-
- uses: actions/setup-node@v6
69-
with:
70-
node-version: 20.x
71-
- uses: rlespinasse/[email protected]
72-
- name: Append commit hash to package version
73-
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
74-
- name: Disable pre- and post-publish actions
75-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
76-
- uses: JS-DevTools/[email protected]
77-
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
78-
with:
79-
token: ${{ secrets.NPM_TOKEN }}
80-
tag: ${{ env.GITHUB_REF_SLUG }}
81-
82-
npm-publish-latest:
83-
needs: [build, npm-publish-build]
84-
runs-on: ubuntu-latest
85-
if: github.ref == 'refs/heads/main'
86-
steps:
87-
- uses: actions/download-artifact@v6
88-
with:
89-
name: build
90-
- uses: actions/setup-node@v6
91-
with:
92-
node-version: 20.x
93-
- name: Disable pre- and post-publish actions
94-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
95-
- uses: JS-DevTools/[email protected]
96-
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
97-
with:
98-
token: ${{ secrets.NPM_TOKEN }}
99-
tag: latest
59+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)