Skip to content

Commit 051f4d6

Browse files
committed
fix: Enable NPM package publishing
- Set package.json private to false to allow npm publish - Add publish job to release workflow with provenance support
1 parent 994dd41 commit 051f4d6

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/release.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,29 @@ jobs:
3535
- uses: actions/setup-node@v4
3636
with:
3737
node-version: 20
38-
registry-url: 'https://registry.npmjs.org'
38+
registry-url: "https://registry.npmjs.org"
3939
if: ${{ steps.release.outputs.release_created }}
4040

4141
- run: npm install
4242
if: ${{ steps.release.outputs.release_created }}
4343

44+
publish:
45+
name: Publish NPM package
46+
runs-on: ubuntu-latest
47+
needs: release_please
48+
if: ${{needs.release_please.outputs.release_created}}
49+
permissions:
50+
contents: read
51+
id-token: write
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: actions/setup-node@v4
55+
with:
56+
node-version: 24
57+
registry-url: "https://registry.npmjs.org"
58+
- run: npm ci
59+
- run: npm publish --provenance --access public
60+
4461
publish_docker:
4562
name: Publish Tagged Docker Image
4663
runs-on: ubuntu-latest
@@ -54,7 +71,7 @@ jobs:
5471
- name: Set up QEMU
5572
uses: docker/setup-qemu-action@v3
5673
with:
57-
platforms: 'arm64,arm'
74+
platforms: "arm64,arm"
5875

5976
- name: Set up Docker Buildx
6077
id: buildx

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "emailengine-app",
33
"version": "2.60.0",
4-
"private": true,
4+
"private": false,
55
"productTitle": "EmailEngine",
66
"description": "Email Sync Engine",
77
"main": "server.js",

0 commit comments

Comments
 (0)