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
25 changes: 8 additions & 17 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ run-name: Publish by @${{ github.actor }}
on:
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -13,27 +17,14 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "24"
registry-url: "https://registry.npmjs.org"
scope: "@intersect.mbo"

- name: Authenticate with Scoped NPM
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
registry-url: "https://registry.npmjs.org"
scope: "@intersect.mbo"
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm config set scope "@intersect.mbo"
npm whoami

- name: Check NPM Authentication
run: npm whoami
package-manager-cache: false

- name: Install dependencies
run: npm ci
Expand Down
5 changes: 5 additions & 0 deletions pdf-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"name": "@intersect.mbo/pdf-ui",
"version": "1.0.16-beta",
"description": "Proposal discussion ui",
"repository": {
"type": "git",
"url": "git+https://github.com/IntersectMBO/govtool-proposal-pillar.git",
"directory": "pdf-ui"
},
"main": "./src/index.js",
"exports": {
".": {
Expand Down
Loading