Skip to content

Commit 76bba48

Browse files
authored
Update Node.js version and streamline deploy steps
Updated Node.js version to 24 and adjusted npm version command to allow same version. Removed redundant steps and added build command before publishing.
1 parent ff39d2e commit 76bba48

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,22 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
2018

2119
- name: Setup Node.js
2220
uses: actions/setup-node@v4
2321
with:
24-
node-version: '20'
22+
node-version: '24'
2523
registry-url: 'https://registry.npmjs.org'
2624

2725
- name: Extract tag version
2826
id: version
2927
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
3028

3129
- name: Update package.json version
32-
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
33-
34-
- name: Install dependencies
35-
run: npm ci
30+
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version --allow-same-version
3631

37-
- name: Run build
38-
run: npm run build
32+
- run: npm ci
33+
- run: npm run build
3934

4035
- name: Commit version update
4136
uses: test-room-7/action-update-file@v1
@@ -46,7 +41,4 @@ jobs:
4641
commit-msg: "chore: update package.json version to ${{ steps.version.outputs.VERSION }}"
4742
github-token: ${{ secrets.GITHUB_TOKEN }}
4843

49-
- name: Publish to npm
50-
run: npm publish
51-
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
- run: npm publish

0 commit comments

Comments
 (0)