Skip to content

fix(docs): document MaxMind credentials required by geoip updater CLI #103

fix(docs): document MaxMind credentials required by geoip updater CLI

fix(docs): document MaxMind credentials required by geoip updater CLI #103

name: Release
on:
push:
branches:
- main
# OIDC Trusted Publishing - No npm tokens needed!
# npm trusts GitHub Actions directly via OIDC
# See: https://docs.npmjs.com/generating-provenance-statements
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write # Required for OIDC trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
# OIDC Trusted Publishing requires npm >= 11.5.1.
# Node 22 ships npm 10.x, which silently falls back to token auth (EOTP).
- name: Upgrade npm for OIDC
run: |
npm install -g npm@latest
npm --version
- name: Install dependencies
run: npm install
- name: Build plugin
run: npm run build
- name: Verify plugin
run: npm run verify
# No NPM_TOKEN: publish happens via OIDC Trusted Publishing.
# Requires a Trusted Publisher configured on npmjs.com for this package
# (Package > Settings > Trusted Publisher: this repo + semantic-release.yml).
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: npx semantic-release