Skip to content

Commit 3ebc6b2

Browse files
committed
ci: point next dist-tag at stable releases too
1 parent 0bb2fee commit 3ebc6b2

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
registry-url: 'https://registry.npmjs.org'
2222
cache: 'npm'
2323
- run: npm ci
2424
- run: npm run build
25-
25+
2626
# Now configure with the publish service for install.
2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 18
29+
node-version: 20
3030
registry-url: 'https://wombat-dressing-room.appspot.com/'
3131

3232
- name: Publish to NPM
@@ -38,3 +38,11 @@ jobs:
3838
fi
3939
env:
4040
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
41+
42+
- name: Point `next` tag at the stable release too
43+
if: ${{ github.event.release.prerelease == false }}
44+
run: |
45+
VERSION=$(node -p "require('./package.json').version")
46+
npm dist-tag add "@a2a-js/sdk@${VERSION}" next
47+
env:
48+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)