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
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NPM Auto Publish

on:
push:
branches:
- main
workflow_dispatch: # This provides a 'Run workflow' button in GitHub for manual triggers

jobs:
publish:
runs-on: ubuntu-latest

# ATTENTION: If you specified an Environment Name (e.g., 'production')
# in your NPM Trusted Publisher settings, uncomment the line below!
# environment: production

permissions:
contents: read
id-token: write # THIS IS THE NEXT-GEN SECURITY! (OIDC Technology)

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish to NPM
run: npm publish --provenance --access public
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nullmock",
"version": "1.0.1",
"version": "1.0.2",
"description": "Zero-dependency, file-system based mock API server with smart data generation",
"main": "src/utils.js",
"bin": {
Expand Down Expand Up @@ -38,4 +38,4 @@
"bin/",
"src/"
]
}
}
Loading