diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7d1f03f..e513ed5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,14 +18,14 @@ jobs: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 - run: bun install - - run: CI=false bun test - # - run: bun run build - # - run: | - # echo '@ricsam:registry=https://registry.npmjs.org' >> .npmrc - # echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc - # echo '//registry.npmjs.org/:always-auth=true' >> .npmrc - # - name: changeset publish - # run: npx changeset publish --access=public --registry=https://registry.npmjs.org/ - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: bun test + - run: bun run build + - run: | + echo '@ricsam:registry=https://registry.npmjs.org' >> .npmrc + echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc + echo '//registry.npmjs.org/:always-auth=true' >> .npmrc + - name: changeset publish + run: npx changeset publish --access=public --registry=https://registry.npmjs.org/ + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/src/backends/s3/mock-s3.test.ts b/src/backends/s3/mock-s3.test.ts index 4116faf..85f41c1 100644 --- a/src/backends/s3/mock-s3.test.ts +++ b/src/backends/s3/mock-s3.test.ts @@ -23,7 +23,6 @@ describe('s3Fs with mocked client', () => { }); afterEach(() => { - jest.clearAllMocks(); spy.mockRestore(); jest.restoreAllMocks(); });