Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
github.event_name != 'schedule' ||
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the goal here? this job is a cron for nightly publishing but we disabled it awhile ago. for actual releases we don't use GHA

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goal is to follow https://docs.npmjs.com/trusted-publishers. i think Paul already linked the GitHub publish.yml in npm to this repo. so it's a matter of linking it up on the GitHub side of things.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, let's actually rename this file to publish-nightly.yml

And then we'll want to create a brand new file for publish. That is a combination of this file and whatever my skill thinks we should do.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i see you introduced a new release.yml.

yahhhhh if you're okay with it.. renaming this old file to publish-nightly and keeping the new one as publish.yml is slightly better.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea that's fine. renaming it. including build-all bc it was in manual instructions...overkill?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no in fact that's probably required for this to work. probably? dunno.

(github.repository == 'GoogleChrome/lighthouse' && ${{ needs.check_date.outputs.should_run != 'false' }})
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -49,9 +52,8 @@ jobs:

- name: Publish to npm
run: |
npm whoami
npm install -g npm@latest
bash $GITHUB_WORKSPACE/.github/scripts/bump-nightly-version.sh
npm publish --tag next
npm publish --provenance --access public --registry https://registry.npmjs.org/ --tag next --dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
CI: true
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@
"puppeteer/**/devtools-protocol": "0.0.1527314",
"puppeteer-core/**/devtools-protocol": "0.0.1527314"
},
"repository": "GoogleChrome/lighthouse",
"repository": {
"type": "git",
"url": "https://github.com/GoogleChrome/lighthouse"
},
"keywords": [
"google",
"chrome",
Expand Down
Loading