From 115eb71138cca8756ee34af3cd3975c3e25fd67d Mon Sep 17 00:00:00 2001 From: Planet Renox Date: Thu, 5 Jun 2025 06:48:29 -0700 Subject: [PATCH] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index acf4e74..830f46b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,28 +1,16 @@ -name: Publish to NPM - on: workflow_dispatch: - jobs: publish: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '22' registry-url: 'https://registry.npmjs.org' - - - name: Install dependencies - run: npm ci || npm install - - - name: Run pack - run: npm run bundle - - - name: Publish to NPM - run: npm publish + - run: npm ci || npm install + - run: npm run bundle + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}