Skip to content

Commit 54aeed2

Browse files
committed
Update create-release.yaml
1 parent 50fdf2b commit 54aeed2

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/create-release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Create a new release
33
on:
44
workflow_dispatch:
55
push:
6-
branches:
7-
- main
6+
branches: [ main ]
87

98
jobs:
109
release:
1110
runs-on: ubuntu-latest
1211
permissions:
1312
contents: write
13+
packages: write
1414

1515
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'chore')"
1616

@@ -21,16 +21,20 @@ jobs:
2121
fetch-depth: 0
2222
token: ${{ secrets.ADMIN_TOKEN }}
2323
persist-credentials: true
24+
ssh-key: ""
25+
ssh-strict: false
2426

25-
- name: Setup Git
27+
- name: Force Git HTTPS auth
2628
run: |
29+
git config --global url."https://${{ secrets.ADMIN_TOKEN }}@github.com/".insteadOf "https://github.com/"
2730
git config --global user.name "secrets.automation.dev"
2831
git config --global user.email "secrets.automation.dev@il.ibm.com"
2932
3033
- name: Setup Node.js
3134
uses: actions/setup-node@v6
3235
with:
3336
node-version: '22'
37+
registry-url: 'https://registry.npmjs.org'
3438

3539
- name: Install dependencies
3640
run: npm ci

0 commit comments

Comments
 (0)