mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-21 23:26:12 +00:00
Parse dist-tag from version for publishing on NPM (#8039)
This commit is contained in:

committed by
GitHub

parent
bbbd84fa1e
commit
76b0d406d7
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -210,6 +210,8 @@ jobs:
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
- name: Publish to NPM
|
||||
run: npm publish
|
||||
run: |
|
||||
TAG=$(echo $GITHUB_REF_NAME | grep -oP '^v\d+\.\d+\.\d+-?\K(\w+)?')
|
||||
npm publish --tag ${TAG:-latest}
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
Reference in New Issue
Block a user