Skip to content

Commit 9f3232c

Browse files
committed
Update create-release.yaml
1 parent 54aeed2 commit 9f3232c

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

.github/workflows/create-release.yaml

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

89
jobs:
910
release:
1011
runs-on: ubuntu-latest
1112
permissions:
1213
contents: write
13-
packages: write
14-
1514
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'chore')"
16-
1715
steps:
1816
- name: Checkout code
1917
uses: actions/checkout@v6
2018
with:
2119
fetch-depth: 0
2220
token: ${{ secrets.ADMIN_TOKEN }}
23-
persist-credentials: true
24-
ssh-key: ""
25-
ssh-strict: false
26-
27-
- name: Force Git HTTPS auth
28-
run: |
29-
git config --global url."https://${{ secrets.ADMIN_TOKEN }}@github.com/".insteadOf "https://github.com/"
30-
git config --global user.name "secrets.automation.dev"
31-
git config --global user.email "secrets.automation.dev@il.ibm.com"
3221

3322
- name: Setup Node.js
3423
uses: actions/setup-node@v6
3524
with:
3625
node-version: '22'
37-
registry-url: 'https://registry.npmjs.org'
3826

3927
- name: Install dependencies
4028
run: npm ci
4129

4230
- name: Build project
4331
run: npm run build
4432

45-
- name: Release with semantic-release
33+
- name: Release using semantic-release
4634
env:
4735
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
48-
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4936
GIT_AUTHOR_NAME: secrets.automation.dev
5037
GIT_AUTHOR_EMAIL: secrets.automation.dev@il.ibm.com
5138
GIT_COMMITTER_NAME: secrets.automation.dev
5239
GIT_COMMITTER_EMAIL: secrets.automation.dev@il.ibm.com
40+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5341
run: npx semantic-release

0 commit comments

Comments
 (0)