diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec3e57f..cbbbe6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..2b0ddd4 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -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 }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..466df71 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +} diff --git a/Dockerfile b/Dockerfile index 799c62e..985c31b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/jest.setup.ts b/jest.setup.ts index dace20e..560880a 100644 --- a/jest.setup.ts +++ b/jest.setup.ts @@ -1,3 +1,2 @@ process.env['MANIFEST_ID'] = 'community.webstreamr'; process.env['MANIFEST_NAME'] = 'WebStreamr'; -process.env['MANIFEST_VERSION'] = '0.0.0'; diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..1253756 --- /dev/null +++ b/release-please-config.json @@ -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 + } + } +} diff --git a/src/addon.ts b/src/addon.ts index 49f69dc..424d7c1 100644 --- a/src/addon.ts +++ b/src/addon.ts @@ -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: [