Skip to content

Commit 15ae5d9

Browse files
authored
[WTF-2433]: Make widgets-tools publishing actions "trusted publishers" with npm (#150)
Fixes: - Exported values must be on a single line. Added `-c` for compact output to jq. - Make the dependency on the discover job explicit Since the release failed I needed to "unrelease" 11.3.0 again.
2 parents 64f179b + 75ec382 commit 15ae5d9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/PublishNpm.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ jobs:
2424
for tag in $(git tag --points-at HEAD); do
2525
package=${tag%-v*}
2626
version=${tag##*-v}
27-
jq -nc --arg p $package --arg v $version '{ package: $p, version: $v }'
27+
# Without a file argument, jq will wait for stdin, unless you specify --null-input.
28+
# By default jq pretty prints json. We need all of it on 1 line, so we use --compact-output here.
29+
jq --null-input --compact-output --arg p $package --arg v $version '{ package: $p, version: $v }'
2830
done
29-
) | jq --slurp '.'
31+
# The github outputs don't support unescaped newlines. So we use compact output here as well.
32+
) | jq --compact-output --slurp '.'
3033
)" >> "$GITHUB_OUTPUT"
3134
3235
publish:
3336
name: "Publish NPM packages"
3437
runs-on: ubuntu-latest
35-
38+
needs: discovery
39+
if: ${{ needs.discover.outputs.releases != '[]' }}
3640
strategy:
3741
fail-fast: false
3842
matrix:

packages/pluggable-widgets-tools/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9-
## [11.3.0] - 2025-11-11
10-
119
### Changed
1210

1311
- We added @d11/react-native-fast-image as an external native dependency in rollup config.

0 commit comments

Comments
 (0)