You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Fix release-npm output id
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
10
.github/workflows/release-npm.yml
vendored
10
.github/workflows/release-npm.yml
vendored
@@ -35,15 +35,17 @@ jobs:
|
|||||||
run: "yarn install --frozen-lockfile"
|
run: "yarn install --frozen-lockfile"
|
||||||
|
|
||||||
- name: 🚀 Publish to npm
|
- name: 🚀 Publish to npm
|
||||||
run: npm publish --provenance --access public --tag next
|
id: npm-publish
|
||||||
|
run: |
|
||||||
|
npm publish --provenance --access public --tag next
|
||||||
|
release=$(jq -r '"\(.name)@\(.version)"' package.json)
|
||||||
|
echo "id=$release" >> $GITHUB_OUTPUT
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: 🎖️ Add `latest` dist-tag to final releases
|
- name: 🎖️ Add `latest` dist-tag to final releases
|
||||||
if: steps.npm-publish.outputs.id && !contains(steps.npm-publish.outputs.id, '-rc.')
|
if: steps.npm-publish.outputs.id && !contains(steps.npm-publish.outputs.id, '-rc.')
|
||||||
run: |
|
run: npm dist-tag add "$release" latest
|
||||||
release=$(jq -r '"\(.name)@\(.version)"' package.json)
|
|
||||||
npm dist-tag add "$release" latest
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
release: ${{ steps.npm-publish.outputs.id }}
|
release: ${{ steps.npm-publish.outputs.id }}
|
||||||
|
Reference in New Issue
Block a user