From d24565479db396756da07519dfafd2906fa86860 Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 25 Mar 2025 12:47:39 +0700 Subject: [PATCH] setup-node is needed for npm publish --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db2f9cdb..9f7e2db4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,6 +156,11 @@ jobs: - name: Display structure of downloaded files run: ls -R + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - name: Release to GitHub uses: ncipollo/release-action@v1 with: @@ -168,4 +173,4 @@ jobs: - run: npm publish --provenance --access public env: - NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}