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 }}