Skip to content

Commit d07e9e2

Browse files
authored
Update release workflow conditions and Node.js version
1 parent db13bf5 commit d07e9e2

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/create-release.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14-
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'chore')"
14+
id-token: write
15+
if: |
16+
(github.event_name == 'push' &&
17+
github.ref == 'refs/heads/main' &&
18+
!startsWith(github.event.head_commit.message, 'chore'))
19+
||
20+
github.event_name == 'workflow_dispatch'
1521
steps:
1622
- name: Checkout code
1723
uses: actions/checkout@v6
@@ -22,7 +28,7 @@ jobs:
2228
- name: Setup Node.js
2329
uses: actions/setup-node@v6
2430
with:
25-
node-version: '22'
31+
node-version: '24'
2632

2733
- name: Install dependencies
2834
run: npm ci
@@ -37,5 +43,9 @@ jobs:
3743
GIT_AUTHOR_EMAIL: secrets.automation.dev@il.ibm.com
3844
GIT_COMMITTER_NAME: secrets.automation.dev
3945
GIT_COMMITTER_EMAIL: secrets.automation.dev@il.ibm.com
40-
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
41-
run: npx semantic-release
46+
#NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
47+
run: npx semantic-release
48+
49+
- name: Test OIDC publish (dry-run)
50+
if: github.event_name == 'workflow_dispatch'
51+
run: npm publish --dry-run --verbose

0 commit comments

Comments
 (0)