Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,22 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
needs:
- release
# Authenticates to npm via OIDC trusted publishing (no token). Each
# published package must list this repo and workflow file as a trusted
# publisher in its npmjs.com settings.
permissions:
id-token: write
contents: read
steps:
- uses: ory/ci/checkout@master
- uses: actions/setup-node@v4
Comment thread
alnr marked this conversation as resolved.
with:
node-version: "22"
# Trusted publishing requires npm >= 11.5.1; node 22 bundles npm 10.
- run: npm install -g npm@11
- env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_AENEASR }}
REF_NAME: ${{ github.ref_name }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
node npm/publish.js "$REF_NAME"
run: node npm/publish.js "$REF_NAME"

newsletter-draft:
name: Draft newsletter
Expand Down
Loading