chore: configure Release Please
This commit is contained in:
parent
3078e02b4b
commit
26b19b01b5
7 changed files with 82 additions and 7 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
|
@ -14,6 +14,5 @@ jobs:
|
|||
build-args: |
|
||||
MANIFEST_ID="community.webstreamr"
|
||||
MANIFEST_NAME="WebStreamr"
|
||||
MANIFEST_VERSION="0.0.0"
|
||||
push: false
|
||||
tags: webstreamr/webstreamr:latest
|
||||
|
|
|
|||
15
.github/workflows/release-please.yml
vendored
Normal file
15
.github/workflows/release-please.yml
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
name: Release Please
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: googleapis/release-please-action@v4
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
||||
3
.release-please-manifest.json
Normal file
3
.release-please-manifest.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
".": "0.1.0"
|
||||
}
|
||||
|
|
@ -24,12 +24,8 @@ RUN test -n "$MANIFEST_ID" || (echo "MANIFEST_ID is not set" && exit 1)
|
|||
ARG MANIFEST_NAME
|
||||
RUN test -n "$MANIFEST_NAME" || (echo "MANIFEST_NAME is not set" && exit 1)
|
||||
|
||||
ARG MANIFEST_VERSION
|
||||
RUN test -n "$MANIFEST_VERSION" || (echo "MANIFEST_VERSION is not set" && exit 1)
|
||||
|
||||
ENV MANIFEST_ID=$MANIFEST_ID
|
||||
ENV MANIFEST_NAME=$MANIFEST_NAME
|
||||
ENV MANIFEST_VERSION=$MANIFEST_VERSION
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=$PORT
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
process.env['MANIFEST_ID'] = 'community.webstreamr';
|
||||
process.env['MANIFEST_NAME'] = 'WebStreamr';
|
||||
process.env['MANIFEST_VERSION'] = '0.0.0';
|
||||
|
|
|
|||
63
release-please-config.json
Normal file
63
release-please-config.json
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json",
|
||||
"changelog-sections": [
|
||||
{
|
||||
"type": "build",
|
||||
"section": "Build System"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Miscellaneous Chores"
|
||||
},
|
||||
{
|
||||
"type": "ci",
|
||||
"section": "Continuous Integration"
|
||||
},
|
||||
{
|
||||
"type": "docs",
|
||||
"section": "Documentation"
|
||||
},
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "feature",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "perf",
|
||||
"section": "Performance Improvements"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code Refactoring"
|
||||
},
|
||||
{
|
||||
"type": "revert",
|
||||
"section": "Reverts"
|
||||
},
|
||||
{
|
||||
"type": "style",
|
||||
"section": "Styles"
|
||||
},
|
||||
{
|
||||
"type": "test",
|
||||
"section": "Tests"
|
||||
}
|
||||
],
|
||||
"extra-files": [
|
||||
"src/addon.ts"
|
||||
],
|
||||
"packages": {
|
||||
".": {
|
||||
"release-type": "node",
|
||||
"pull-request-title-pattern": "chore(release): release v${version}",
|
||||
"include-component-in-tag": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ const handlers: Handler[] = [
|
|||
|
||||
const manifest: Manifest = {
|
||||
id: process.env['MANIFEST_ID'] || '',
|
||||
version: process.env['MANIFEST_VERSION'] || '',
|
||||
version: '0.1.0', // x-release-please-version
|
||||
name: process.env['MANIFEST_NAME'] || '',
|
||||
description: `Provides HTTP URLs from streaming websites.`,
|
||||
resources: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue