Skip to content

Commit

Permalink
Merge pull request #93 from xseman/master
Browse files Browse the repository at this point in the history
ci: add release-please with provenance
  • Loading branch information
dderevjanik authored Aug 12, 2024
2 parents d4b80f9 + ac61d24 commit 16ff043
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.7.1"
}
27 changes: 27 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "node",
"include-v-in-tag": true,
"include-component-in-tag": false,
"pull-request-title-pattern": "v${version}",
"pull-request-header": "",
"pull-request-footer": ""
}
},
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "deps", "section": "Dependency updates" },
{ "type": "docs", "section": "Documentation" },
{ "type": "ci", "section": "Maintenance" },
{ "type": "build", "section": "Maintenance" },
{ "type": "chore", "section": "Maintenance" },
{ "type": "refactor", "section": "Refactors" },
{ "type": "test", "section": "Tests" },
{ "type": "style", "section": "Code Style", "hidden": true },
{ "type": "examples", "section": "Examples", "hidden": true }
]
}
44 changes: 44 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: release-please

on:
workflow_run:
workflows:
- QA
types:
- completed
# manual
workflow_dispatch:
inputs:
publish-release:
description: Publish the release?
required: true
default: "false"

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
manifest-file: .github/.release-please-manifest.json
config-file: .github/release-please-config.json

- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
uses: actions/checkout@v4

- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
uses: actions/setup-node@v4

- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: >
npm ci &&
npm run build &&
npm publish --provenance --access public

0 comments on commit 16ff043

Please sign in to comment.