Skip to content

fix(release): use OIDC Trusted Publish for npmjs.org #1

fix(release): use OIDC Trusted Publish for npmjs.org

fix(release): use OIDC Trusted Publish for npmjs.org #1

Workflow file for this run

jobs:

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 9, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'actions/checkout', (Line: 10, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'actions/setup-node'
release:
runs-on: ubuntu-latest
permissions:
contents: write # For git operations
id-token: write # < REQUIRED FOR OIDC
steps:
- uses: actions/checkout
- uses: actions/setup-node
with:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"
# OIDC requires npm v11.5.1 or later
# Node.js v20 comes with v10.8, so we need to update it:
- run: yarn release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.MIKE_HARDY_RELEASE_GITHUB_TOKEN }}