1
0
mirror of https://github.com/gorhill/uBlock.git synced 2025-01-31 12:11:36 +01:00

Fix workflow and makefile

This commit is contained in:
Raymond Hill 2025-01-10 11:08:54 -05:00
parent 149228c388
commit 3685a18fe9
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 4 additions and 10 deletions

View File

@ -15,10 +15,6 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: 22
- name: Clone repository
uses: actions/checkout@v4
with:
@ -34,9 +30,6 @@ jobs:
tools/make-chromium.sh ${{ env.VERSION }}
tools/make-firefox.sh ${{ env.VERSION }}
tools/make-thunderbird.sh ${{ env.VERSION }}
- name: Build NPM package
run: |
tools/make-npm.sh ${{ env.VERSION }}
- name: Assemble release notes
run: |
> release.body.txt
@ -57,4 +50,3 @@ jobs:
dist/build/uBlock0_${{ env.VERSION }}.chromium.zip
dist/build/uBlock0_${{ env.VERSION }}.firefox.xpi
dist/build/uBlock0_${{ env.VERSION }}.thunderbird.xpi
dist/build/uBlock0_${{ env.VERSION }}.npm.tgz

View File

@ -33,9 +33,11 @@ dist/build/uBlock0.npm: tools/make-nodejs.sh $(sources) $(platform) $(assets)
tools/make-npm.sh
# Dev tools
npm: node_modules/
node_modules:
npm install
npm: node_modules
lint: npm
npm run lint
@ -77,7 +79,7 @@ dist/build/uAssets:
tools/pull-assets.sh
clean:
rm -rf dist/build tmp/node_modules
rm -rf dist/build tmp/node_modules node_modules
cleanassets:
rm -rf dist/build/mv3-data dist/build/uAssets