From c458c8d813c3f15243d766184a935871279240f9 Mon Sep 17 00:00:00 2001 From: Mike Cousins Date: Wed, 10 May 2023 20:05:17 -0400 Subject: [PATCH] ci: configure CI for publish --- .github/workflows/ci.yaml | 11 ++++++++--- package.json | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cce4f4d..c4c9880 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,8 +85,11 @@ jobs: - name: Checkout source uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + registry-url: https://registry.npmjs.org - name: Download publish artifact uses: actions/download-artifact@v3 @@ -95,4 +98,6 @@ jobs: path: dist - name: Publish to npm - run: pnpm publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index f085617..baa8893 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "src" ], "publishConfig": { + "access": "public", "provenance": true }, "packageManager": "pnpm@8.5.0",