Skip to content

Commit 4d14248

Browse files
authored
Merge pull request #1586 from microsoft/ci/switch-tag-trigger
ci: switches to a tag trigger to align with other languages
2 parents 7f9d9a2 + 1ef574a commit 4d14248

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build_test_validate.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches: [ main ]
7+
tags: [ '@microsoft/kiota-abstractions@*' ]
78
pull_request:
89

910
jobs:
@@ -95,7 +96,7 @@ jobs:
9596

9697

9798
publish-npm:
98-
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'chore: release main') }}"
99+
if: startsWith(github.ref, 'refs/tags/')
99100
needs: [build, check-typescript-version-matrix]
100101
environment:
101102
name: production_feed
@@ -104,14 +105,8 @@ jobs:
104105
- uses: actions/checkout@v4
105106
- uses: actions/setup-node@v4
106107
with:
107-
node-version: 20
108+
node-version: 22
108109
registry-url: https://registry.npmjs.org/
109-
- run: |
110-
git config --global user.name '${GITHUB_ACTOR}'
111-
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
112-
env:
113-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114-
GITHUB_ACTOR: ${{ secrets.GIT_USERNAME }}
115110
- run: npm ci
116111
- run: npm run build
117112
- run: npx lerna publish from-package --no-push --yes

0 commit comments

Comments
 (0)