Skip to content

Commit 50fdf2b

Browse files
committed
Update create-release.yaml
1 parent 7b5f0c6 commit 50fdf2b

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/create-release.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14+
1415
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'chore')"
16+
1517
steps:
1618
- name: Checkout code
1719
uses: actions/checkout@v6
@@ -20,29 +22,28 @@ jobs:
2022
token: ${{ secrets.ADMIN_TOKEN }}
2123
persist-credentials: true
2224

23-
- name: Configure Git
25+
- name: Setup Git
2426
run: |
25-
git config --global url."https://x-access-token:${{ secrets.ADMIN_TOKEN }}@github.com/".insteadOf "https://github.com/"
27+
git config --global user.name "secrets.automation.dev"
28+
git config --global user.email "secrets.automation.dev@il.ibm.com"
2629
2730
- name: Setup Node.js
2831
uses: actions/setup-node@v6
2932
with:
3033
node-version: '22'
3134

3235
- name: Install dependencies
33-
run: npm install
36+
run: npm ci
3437

3538
- name: Build project
3639
run: npm run build
3740

38-
- name: Release using semantic-release
41+
- name: Release with semantic-release
3942
env:
4043
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
44+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4145
GIT_AUTHOR_NAME: secrets.automation.dev
4246
GIT_AUTHOR_EMAIL: secrets.automation.dev@il.ibm.com
4347
GIT_COMMITTER_NAME: secrets.automation.dev
4448
GIT_COMMITTER_EMAIL: secrets.automation.dev@il.ibm.com
45-
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
46-
run: npx semantic-release
47-
48-
# Made with Bob
49+
run: npx semantic-release

0 commit comments

Comments
 (0)