diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index d271133..9b3f916 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -3,28 +3,37 @@ on: branches: - main name: release-please + +permissions: + contents: write + pull-requests: write + jobs: release-please: runs-on: ubuntu-latest steps: - - uses: GoogleCloudPlatform/release-please-action@v3 + - uses: GoogleCloudPlatform/release-please-action@v4 id: release with: - release-type: node - package-name: test-release-please + token: ${{ secrets.GITHUB_TOKEN }} + # The logic below handles the npm publication: - uses: actions/checkout@v4 # these if statements ensure that a publication only occurs when # a new release is created: if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' if: ${{ steps.release.outputs.release_created }} + - run: npm ci if: ${{ steps.release.outputs.release_created }} - - run: npm publish + + - name: Publish to npm + run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} if: ${{ steps.release.outputs.release_created }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..e69de29 diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000..c5644e8 --- /dev/null +++ b/jsr.json @@ -0,0 +1,5 @@ +{ + "name": "@humanwhocodes/retry", + "version": "0.1.3", + "exports": "./dist/retrier.js" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..3dda905 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,16 @@ +{ + "bootstrap-sha": "1397defe50396b964a57aaaff491e4936d235fd5", + "bump-minor-pre-major": true, + "packages": { + ".": { + "release-type": "node", + "extra-files": [ + { + "type": "json", + "path": "deno.json", + "jsonpath": "$.version" + } + ] + } + } +}