Skip to content

Commit 523cdef

Browse files
Update publish.yml
1 parent 6abe800 commit 523cdef

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,7 @@ on:
44
types: [published]
55

66
jobs:
7-
prepare:
8-
permissions:
9-
contents: write
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
with:
14-
token: ${{ secrets.GITHUB_TOKEN }}
15-
ssh-key: ${{ secrets.MERGE_BYPASS_KEY }}
16-
ref: ${{ github.event.repository.default_branch }}
17-
- name: Setup Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: 24
21-
registry-url: https://registry.npmjs.org
22-
- name: Install dependencies
23-
run: npm ci
24-
- name: Configure git
25-
run: |
26-
git config --local user.email "github-actions@github.com"
27-
git config --local user.name "GitHub Actions"
28-
- name: Update package.json with release tag
29-
run: |
30-
TAG="${{ github.event.release.tag_name }}"
31-
echo "Updating package.json version to $TAG"
32-
npm version "$TAG"
33-
- name: Commit and push version update
34-
run: |
35-
TAG="${{ github.event.release.tag_name }}"
36-
git add package.json package-lock.json
37-
git commit -m "Update package.json to version $TAG"
38-
git push origin ${{ github.event.repository.default_branch }}
39-
git push origin tag $TAG --force
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
437
publish-npm:
44-
needs: prepare
458
permissions:
469
id-token: write
4710
contents: read
@@ -57,7 +20,6 @@ jobs:
5720
- run: npm run release
5821

5922
publish-github:
60-
needs: prepare
6123
runs-on: ubuntu-latest
6224
permissions:
6325
contents: read

0 commit comments

Comments
 (0)