You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-12 08:45:27 -04:00
fix: npm trusted publishing
This commit is contained in:
@@ -5,23 +5,20 @@ on:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
npm:
|
||||
name: Publish to NPM
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
run_install: false
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm publish --no-git-checks
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
NPM_CONFIG_PROVENANCE: true
|
||||
node-version: "24"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- run: npm install -g npm@latest
|
||||
- run: npm ci
|
||||
- run: npm publish
|
||||
|
||||
@@ -16,27 +16,24 @@ jobs:
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
node:
|
||||
- 24
|
||||
- 22
|
||||
- 20
|
||||
- 18
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: Node ${{ matrix.node }} on ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
run_install: false
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: npm ci
|
||||
env:
|
||||
DEBUG: careful-downloader
|
||||
DEBUG_HIDE_DATE: 1
|
||||
DEBUG_COLORS: 0
|
||||
- run: pnpm audit --prod
|
||||
- run: npm audit --omit=dev
|
||||
continue-on-error: true
|
||||
- run: pnpm run test
|
||||
- run: npm run test
|
||||
- run: node lib/cli.js new site mysite
|
||||
- run: node lib/cli.js --source mysite/ --minify --enableGitInfo --logLevel info
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
node_modules/
|
||||
vendor/
|
||||
npm-debug.log
|
||||
package-lock.json
|
||||
|
||||
Generated
+3712
File diff suppressed because it is too large
Load Diff
+5
-3
@@ -13,6 +13,9 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jakejarvis/hugo-extended.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
@@ -42,7 +45,7 @@
|
||||
"test": "eslint . && mocha"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.12"
|
||||
"node": ">=18.17"
|
||||
},
|
||||
"keywords": [
|
||||
"hugo",
|
||||
@@ -77,6 +80,5 @@
|
||||
"vendor/**",
|
||||
"*.d.ts"
|
||||
]
|
||||
},
|
||||
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
-3099
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user