From 9827f08a74f53c4ed6c1126732e50c8034b1463e Mon Sep 17 00:00:00 2001 From: Arne Roomann-Kurrik Date: Sat, 30 Aug 2025 14:05:54 -0700 Subject: [PATCH] fix: delete publish workflow and run from release instead --- .github/workflows/publish.yml | 35 ----------------------------------- .github/workflows/release.yml | 12 +++++++++--- 2 files changed, 9 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 9278a25..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Publish to npm - -on: - release: - types: [published, released, created, edited] - workflow_dispatch: - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20.x' - cache: 'npm' - registry-url: 'https://registry.npmjs.org' - - - name: Install dependencies - run: npm ci - - - name: Run CI checks - run: npm run ci - - - name: Build - run: npm run build - - - name: Publish to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f1ed5e..5598247 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,13 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Trigger npm publish - run: gh workflow run publish.yml + - name: Setup Node.js for npm publishing + uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + + - name: Publish to npm + run: npm publish env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file