Skip to content

Commit

Permalink
ci: Upgrade release-please (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas authored Mar 13, 2024
1 parent 1397def commit 3233da2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Empty file added .release-please-manifest.json
Empty file.
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@humanwhocodes/retry",
"version": "0.1.3",
"exports": "./dist/retrier.js"
}
16 changes: 16 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
}

0 comments on commit 3233da2

Please sign in to comment.