Skip to content

Commit 55d2740

Browse files
authored
ci: point next dist-tag at stable releases too (#595)
# Description New pointing logic: ``` If stable release: release under latest and next tag else: release under next tag ``` Also bumps node version to `20` in the workflow
1 parent 7369a29 commit 55d2740

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 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
@@ -35,6 +35,8 @@ jobs:
3535
npm publish --provenance --access public --tag next
3636
else
3737
npm publish --provenance --access public
38+
VERSION=$(node -p "require('./package.json').version")
39+
npm dist-tag add "@a2a-js/sdk@${VERSION}" next
3840
fi
3941
env:
4042
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)