Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish releases to npm

# based on https://dev.to/michi/publish-to-npm-automatically-with-github-actions-5805
permissions:
id-token: write # required to publish on NPM via Trusted Publisher Workflow; see https://docs.npmjs.com/trusted-publishers
contents: read

on:
release:
Expand All @@ -15,7 +17,7 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
Expand All @@ -26,8 +28,6 @@ jobs:
- run: git config --global user.email "github-cd-bot@ems.press"
- run: npm version ${{ github.event.release.tag_name }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
- run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions src/resources/persons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export type Attributes = {
givenName?: string
prefix?: string
orcid?: string
zbmathId?: string
mathReviewsId?: string
description?: string
organization?: string
role?: string
Expand Down