Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,13 @@
runs-on: ubuntu-latest
name: Branch protection
needs: ['test', 'contribute', 'browser', 'firebase-13']
# A skipped job satisfies a required status check, so this job must run on every outcome of
# the jobs above and fail itself. Keep always(), not !cancelled(): a cancelled run must stay red.
if: ${{ always() }}
steps:
- run: true
- name: Fail unless every needed job succeeded
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
run: exit 1

publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -239,7 +244,7 @@
- name: Publish
id: publish
if: steps.canary_check.outputs.skip != 'true' && steps.release_tag.outputs.published != 'true'
run: npm publish ./dist/packages-dist --access public --registry https://wombat-dressing-room.appspot.com --tag "$NPM_TAG"

Check notice on line 247 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

test.yml:247: prefer trusted publishing for authentication: this command
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TAG: ${{ steps.release_tag.outputs.tag || 'canary' }}
Expand Down
Loading