Skip to content

Commit

Permalink
Remove gulp in favor of webpack, update package and release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven65 committed Sep 10, 2024
1 parent 8d6f90d commit d517d5f
Show file tree
Hide file tree
Showing 18 changed files with 5,556 additions and 3,996 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
build-assets:
needs: ['release']
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Get latest release version
id: get-version
Expand All @@ -32,6 +35,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update version in package.json
run: |
# Read the latest release version from environment variable
LATEST_VERSION="${{ env.LATEST_RELEASE }}"
# Update the "version" field in package.json using jq
jq --arg version "$LATEST_VERSION" '.version = $version' package.json > temp.json && mv temp.json package.json
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -43,15 +53,13 @@ jobs:
- name: Run CI
if: ${{ hashFiles('package.json') != '' && hashFiles('package-lock.json') != '' }}
run: npm ci --no-progress --no-audit
- name: Run install
if: ${{ hashFiles('package.json') != '' && hashFiles('package-lock.json') == '' }}
run: npm install --no-progress --no-audit
- name: Run build
if: ${{ hashFiles('package-lock.json') != '' && hashFiles('gulp.js') == '' }}
run: npx --yes browserslist@latest --update-db && npm run build
- name: Run gulp
if: ${{ hashFiles('package-lock.json') != '' && hashFiles('gulp.js') != '' }}
run: gulp
- name: Publish npm package to GHCR
run: npm publish --registry=https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create assets zip
uses: thedoctor0/zip-release@0.7.5
if: ${{ hashFiles('dist/') != '' }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.*
~*

!.github
# ignore node/grunt dependency directories
node_modules/

Expand Down
13 changes: 0 additions & 13 deletions dist/css/broken-link-detector.dev.css

This file was deleted.

2 changes: 2 additions & 0 deletions dist/css/broken-link-detector.fdba7e11c160efd580f5.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/css/broken-link-detector.fdba7e11c160efd580f5.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/css/broken-link-detector.min.css

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion dist/js/broken-link-detector.dev.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/broken-link-detector.min.js

This file was deleted.

19 changes: 0 additions & 19 deletions dist/js/mce-broken-link-detector.dev.js

This file was deleted.

2 changes: 2 additions & 0 deletions dist/js/mce-broken-link-detector.f59b3e265be67daef9ba.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/js/mce-broken-link-detector.min.js

This file was deleted.

5 changes: 5 additions & 0 deletions dist/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"css/broken-link-detector.css": "css/broken-link-detector.fdba7e11c160efd580f5.css",
"js/broken-link-detector.js": "js/broken-link-detector.31d6cfe0d16ae931b73c.js",
"js/mce-broken-link-detector.js": "js/mce-broken-link-detector.f59b3e265be67daef9ba.js"
}
62 changes: 0 additions & 62 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit d517d5f

Please sign in to comment.