You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Fix npm publish script (#5068)
The `id` is also an output from this workflow so needs re-adding, not sure how the token stuck around, I thought I removed that
This commit is contained in:
committed by
GitHub
parent
9769c05dc5
commit
dc6ad0b54c
7
.github/workflows/release-npm.yml
vendored
7
.github/workflows/release-npm.yml
vendored
@@ -36,7 +36,10 @@ 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 "$TAG"
|
id: npm-publish
|
||||||
|
run: |
|
||||||
|
npm publish --provenance --access public --tag "$TAG"
|
||||||
|
release=$(jq -r '"\(.name)@\(.version)"' package.json)
|
||||||
|
echo "id=$release" >> $GITHUB_OUTPUT
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
TAG: ${{ contains(steps.npm-publish.outputs.id, '-rc.') && 'next' || 'latest' }}
|
TAG: ${{ contains(steps.npm-publish.outputs.id, '-rc.') && 'next' || 'latest' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user