X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fpublish-package.yml;h=bc0929aed1fc7512439ca4aeab0547e44a62a91b;hb=5d9133ae9ef83c5f69e26daf8dcfea584884d9c4;hp=53565257988ef94a5e2b04d161dd6ea6291549cf;hpb=41328ae5bb6579fa40ea51f5931f40105e43cd26;p=poolifier.git diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 53565257..bc0929ae 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -15,12 +15,12 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v3 with: - version: 8 + version: 9 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: 20.x cache: 'pnpm' - name: Install Dependencies @@ -49,30 +49,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v3 - with: - version: 8 - - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20.x' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm install --ignore-scripts --frozen-lockfile + node-version: 20.x - name: Read package.json version id: package-version uses: jaywcjlove/github-action-package@main - - name: Production Build - run: pnpm build:prod - - name: Publish Release if: ${{ contains(steps.package-version.outputs.version, '-') == false }} - run: npx jsr publish + run: npx jsr publish --allow-dirty publish-npm: needs: build @@ -85,12 +73,12 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v3 with: - version: 8 + version: 9 - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: 20.x registry-url: https://registry.npmjs.org/ cache: 'pnpm'