Skip to content

Commit d6e1331

Browse files
Updated the github publish workflow
1 parent 43eaaec commit d6e1331

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ on:
55
- master
66
jobs:
77
npm-publish:
8-
if: contains(github.event.head_commit.message, 'Release')
8+
if: contains(github.event.pull_request.title, 'Release')
99
name: npm-publish
1010
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v6
1515

16-
- name: Use Node.js 20.x
17-
uses: actions/setup-node@v3
16+
- name: Use Node.js 22.x
17+
uses: actions/setup-node@v6
1818
with:
19-
node-version: 20.x
19+
node-version: 22.x
2020

2121
- name: Install node dependencies
2222
run: npm ci
2323

2424
- name: Publish to npm
25-
uses: JS-DevTools/npm-publish@v3
25+
uses: JS-DevTools/npm-publish@v4
2626
with:
2727
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)