From e48ee6c1eec1485a3ae90a0a32db9375692d1593 Mon Sep 17 00:00:00 2001 From: typicode Date: Thu, 25 Jan 2024 03:21:26 +0100 Subject: [PATCH] update npm_publish.yml --- .github/workflows/npm_publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml index 8f78b9b45..5fb6528d7 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_publish.yml @@ -5,7 +5,7 @@ name: Node.js Package on: release: - types: [created] + types: [published] permissions: contents: read @@ -13,9 +13,8 @@ permissions: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 20 @@ -27,10 +26,11 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 20 + registry-url: 'https://registry.npmjs.org' - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}