Skip to content

Conversation

@galargh
Copy link
Contributor

@galargh galargh commented Aug 14, 2025

This PR ensures that we use the cached build for the publishing if available. The build should be cached when js-test-and-release runs.

This PR also introduces usage of the new release (https://github.com/ipdxco/unified-github-workflows/releases/tag/v1.0.30) output of the js-test-and-release job. The output indicates whether a release was attempted or not.

node-version: lts/*
cache: npm
- run: npm ci
- uses: ipfs/aegir/actions/cache-node-modules@main
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks to this, we'll retrieve the build from cache. If, for some reason, cached build is not available, we'll run npm run build.

runs-on: ubuntu-latest
needs: js-test-and-release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: needs.js-test-and-release.outputs.release == 'true'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"build": "npm run sync-version && tsc && cp src/manifest.json dist/ && cp src/popup.html dist/ && cp -r src/icons dist/",
"package": "npm run build && web-ext build --source-dir=dist --artifacts-dir=. --filename=ipfs-quicklaunch.zip --overwrite-dest",
"publish:chrome-store": "npx cws-publish $CHROME_CLIENT_ID $CHROME_CLIENT_SECRET $CHROME_REFRESH_TOKEN ipfs-quicklaunch.zip $CHROME_EXTENSION_ID",
"package": "web-ext build --source-dir=dist --artifacts-dir=. --filename=ipfs-quicklaunch.zip --overwrite-dest",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed build from here because we want to retrieve it from cache instead of running it during publishing.

@galargh galargh marked this pull request as ready for review August 14, 2025 13:27
@2color 2color merged commit d5b8dc4 into main Aug 15, 2025
18 checks passed
@codecov
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (22576c4) to head (b639096).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@    Coverage Diff    @@
##   main   #9   +/-   ##
=========================
=========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants