.github/workflows/release.ymlmodified+13-10Changes to .github/workflows/release.yml | @@ -6,24 +6,27 @@ on: |
| 6 | 6 | - 'v*' |
| 7 | 7 | |
| 8 | 8 | jobs: |
| 9 | | - npm: |
| 10 | | - name: npm |
| 9 | + release: |
| 10 | + name: release |
| 11 | 11 | runs-on: ubuntu-latest |
| 12 | 12 | |
| 13 | 13 | steps: |
| 14 | | - - uses: actions/checkout@v6.0.1 |
| 14 | + - uses: actions/checkout@v4 |
| 15 | 15 | with: |
| 16 | 16 | fetch-depth: 0 |
| 17 | 17 | |
| 18 | | - - name: Install Bun |
| 19 | | - uses: oven-sh/setup-bun@v2.0.2 |
| 20 | | - |
| 21 | | - |
| 18 | + - name: Setup Bun |
| 19 | + uses: oven-sh/setup-bun@v2 |
| 22 | 20 | with: |
| 23 | 21 | bun-version: latest |
| 24 | 22 | |
| 23 | + - name: Setup pantry |
| 24 | + uses: stacksjs/pantry@v0.7 |
| 25 | + with: |
| 26 | + setup-only: 'true' |
| 27 | + |
| 25 | 28 | - name: Use cached node_modules |
| 26 | | - uses: actions/cache@v4.3.0 |
| 29 | + uses: actions/cache@v4 |
| 27 | 30 | with: |
| 28 | 31 | path: node_modules |
| 29 | 32 | key: node-modules-${{ hashFiles('**/bun.lock') }} |
| @@ -34,12 +37,12 @@ jobs: |
| 34 | 37 | run: bun install |
| 35 | 38 | |
| 36 | 39 | - name: Publish to npm |
| 37 | | - run: ./scripts/publish.sh |
| 40 | + run: pantry publish --access public |
| 38 | 41 | env: |
| 39 | 42 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 40 | 43 | |
| 41 | 44 | - name: Create GitHub Release |
| 42 | | - uses: stacksjs/action-releaser@v1.2.6 |
| 45 | + uses: stacksjs/action-releaser@v1.2.7 |
| 43 | 46 | with: |
| 44 | 47 | files: | |
| 45 | 48 | packages/stx/bin/stx-linux-x64.zip |
packages/bun-plugin/test/markdown-processing.test.tsmodified+4-1Changes to packages/bun-plugin/test/markdown-processing.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { afterEach, beforeEach, describe, expect, test } from 'bun:test' |
| 1 | +import { afterEach, beforeEach, describe, expect, test, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import fs from 'node:fs' |
| 3 | 6 | import path from 'node:path' |
| 4 | 7 | import plugin from '../src/index' |
packages/bun-plugin/test/plugin-setup.test.tsmodified+4-1Changes to packages/bun-plugin/test/plugin-setup.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { afterEach, beforeEach, describe, expect, test } from 'bun:test' |
| 1 | +import { afterEach, beforeEach, describe, expect, test, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import fs from 'node:fs' |
| 3 | 6 | import path from 'node:path' |
| 4 | 7 | import plugin from '../src/index' |
packages/bun-plugin/test/scenarios/simple.test.tsmodified+4-1Changes to packages/bun-plugin/test/scenarios/simple.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { afterEach, beforeEach, describe, expect, test } from 'bun:test' |
| 1 | +import { afterEach, beforeEach, describe, expect, test, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import fs from 'node:fs' |
| 3 | 6 | import path from 'node:path' |
| 4 | 7 | import plugin from '../../src/index' |
packages/bun-plugin/test/serve.test.tsmodified+4-1Changes to packages/bun-plugin/test/serve.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { describe, expect, it } from 'bun:test' |
| 1 | +import { describe, expect, it, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import path from 'node:path' |
| 3 | 6 | import stxPlugin from '../src/index' |
| 4 | 7 | |
packages/bun-plugin/test/stx-processing.test.tsmodified+4-1Changes to packages/bun-plugin/test/stx-processing.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { afterEach, beforeEach, describe, expect, test } from 'bun:test' |
| 1 | +import { afterEach, beforeEach, describe, expect, test, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import fs from 'node:fs' |
| 3 | 6 | import path from 'node:path' |
| 4 | 7 | import plugin from '../src/index' |
packages/stx/test/integration/enhanced-processing.test.tsmodified+4-1Changes to packages/stx/test/integration/enhanced-processing.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { afterAll, beforeAll, describe, expect, it } from 'bun:test' |
| 1 | +import { afterAll, beforeAll, describe, expect, it, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import fs from 'node:fs' |
| 3 | 6 | import path from 'node:path' |
| 4 | 7 | import stxPlugin from 'bun-plugin-stx' |
packages/stx/test/plugin/plugin.test.tsmodified+4-1Changes to packages/stx/test/plugin/plugin.test.ts | @@ -1,4 +1,7 @@ |
| 1 | | -import { afterAll, beforeAll, describe, expect, it } from 'bun:test' |
| 1 | +import { afterAll, beforeAll, describe, expect, it, setDefaultTimeout } from 'bun:test' |
| 2 | + |
| 3 | + |
| 4 | +setDefaultTimeout(30000) |
| 2 | 5 | import fs from 'node:fs' |
| 3 | 6 | import path from 'node:path' |
| 4 | 7 | import { plugin } from '../../src/plugin' |