Skip to content

Commit

Permalink
Merge branch 'main' into xmr/dev2
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed May 6, 2024
2 parents d374d7e + f661caf commit a8dfac6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 17 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
- 16
- 18
- 20
- 22

steps:
- name: Clone repository
Expand Down Expand Up @@ -107,6 +108,9 @@ jobs:
if: github.repository == 'fenneclab/hugo-bin' && startsWith(github.ref, 'refs/tags/v')
needs: [lint, test, test-extended]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Clone repository
Expand All @@ -121,6 +125,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Publish on npm
run: npm publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,27 @@ set HUGO_BIN_HUGO_VERSION=0.124.1

#### buildTags

Default: `""`
- Type: `string`
- Default: `""`

Set `buildTags` to `extended` to download the [extended version](https://github.com/gohugoio/hugo/releases/tag/v0.43) binary.

If this is set to `extended` but it's not available for the user's platform, then the normal version will be downloaded instead.

#### downloadRepo

Default: `"https://github.com"`
- Type: `string`
- Default: `"https://github.com"`

Set it to your proxy URL to download the hugo binary from a different download repository.

#### hugoVersion

Default: the version specified in [package.json](package.json)
- Type: `string`
- Default: the version specified in [package.json](package.json)

You can override the Hugo version here, but please note that if any of the URLs have changed upstream, you might not be able to use any version and you will probably need to update to a newer hugo-bin version which takes into consideration the new URLs.
You can override the Hugo version here. Please note that if any of the URLs have changed upstream, you might not be able to use
any version and you will probably need to update to a newer hugo-bin version which takes into consideration the new URLs.

## Supported Hugo versions

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

28 changes: 18 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hugo-bin",
"version": "0.122.0",
"hugoVersion": "0.125.0",
"version": "0.122.7",
"hugoVersion": "0.125.6",
"description": "Binary wrapper for Hugo",
"repository": {
"type": "git",
Expand All @@ -21,6 +21,14 @@
"url": "https://github.com/sponsors/XhmikosR"
}
],
"keywords": [
"binary",
"executable",
"hugo",
"sass",
"scss",
"wrapper"
],
"license": "MIT",
"type": "module",
"exports": {
Expand All @@ -29,6 +37,14 @@
"bin": {
"hugo": "bin/cli.js"
},
"files": [
"bin/cli.js",
"lib/*.js",
"index.js"
],
"engines": {
"node": ">=16"
},
"dependencies": {
"@xhmikosr/bin-wrapper": "^12.0.0",
"pkg-conf": "^4.0.0"
Expand All @@ -47,14 +63,6 @@
"test:ci": "c8 npm run uvu",
"postinstall": "node lib/install.js"
},
"files": [
"bin/cli.js",
"lib/*.js",
"index.js"
],
"engines": {
"node": ">=16"
},
"xo": {
"space": true,
"rules": {
Expand Down

0 comments on commit a8dfac6

Please sign in to comment.