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
24 changes: 17 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
# Publishes packages to npm using npm Trusted Publishing (OIDC).
# Docs: https://docs.npmjs.com/trusted-publishers
# npm package settings must list: owner, repo, workflow `npm-publish.yml`,
# environment `npm-publish`. Renaming either breaks publishing.

name: NPM Publish

on:
release:
types: [published]

workflow_dispatch:
permissions:
id-token: write # lets the job request the OIDC token npm exchanges for a publish token
contents: read

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # trusted publishing only works on GitHub-hosted runners
# Requires reviewer approval before the job starts (Settings > Environments).
environment: npm-publish
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.2.0'
node-version: '24.14.0'
registry-url: https://registry.npmjs.org/
# Trusted publishing needs npm >= 11.5.1.
- run: npm install -g npm@11
- run: npm ci
- run: npm run build
# No NODE_AUTH_TOKEN: npm authenticates via OIDC.
- run: |
cd packages
find . -maxdepth 1 -mindepth 1 -type d \( -path ./examples -o -path ./scripts \) -prune -o -type d -exec bash -c "cd '{}' && npm publish --access public" \;
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5 changes: 5 additions & 0 deletions packages/wallet-edv-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"name": "@docknetwork/wallet-edv-storage",
"version": "1.9.1",
"repository": {
"type": "git",
"url": "git+https://github.com/docknetwork/wallet-sdk.git",
"directory": "packages/wallet-edv-storage"
},
"main": "./src/index.js",
"license": "MIT",
"type": "module",
Expand Down
Loading