Skip to content

Commit f86f445

Browse files
authored
Merge pull request #242 from microsoftgraph/ci/switch-tag-trigger
ci: adds node 22 ci: switch trigger to tag
2 parents 5ca66c7 + 25086fb commit f86f445

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
workflow_dispatch:
77
push:
88
branches: [main]
9+
tags: [ 'v*' ]
910
pull_request:
1011
branches: [main]
1112

@@ -19,7 +20,7 @@ jobs:
1920

2021
strategy:
2122
matrix:
22-
node-version: [18.x, 20.x]
23+
node-version: [18.x, 20.x, 22.x]
2324
# Single version should work for compilation testing
2425

2526
steps:
@@ -63,7 +64,7 @@ jobs:
6364
run: exit 1
6465

6566
publish-npm:
66-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.actor == 'release-please[bot]'}}
67+
if: startsWith(github.ref, 'refs/tags/')
6768
needs: build
6869
environment:
6970
name: production_feed
@@ -72,10 +73,10 @@ jobs:
7273
- uses: actions/checkout@v4
7374
- uses: actions/setup-node@v4
7475
with:
75-
node-version: 20
76+
node-version: 22
7677
registry-url: https://registry.npmjs.org/
7778
- run: npm ci
7879
- run: npm run build
79-
- run: npx lerna publish from-package --yes
80+
- run: npx lerna publish from-package --no-push --yes
8081
env:
8182
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)