diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c4dfdaa4b..c655b8e98 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -7,9 +7,27 @@ on: jobs: publish-release: - uses: mdn/workflows/.github/workflows/publish-release.yml@main - with: - target-repo: "mdn/bob" - secrets: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + if: github.repository == 'mdn/bob' + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v4 + id: release + with: + token: "${{ secrets.GITHUB_TOKEN }}" + release-type: "node" + + - uses: actions/checkout@v4 + if: steps.release.outputs.release_created + + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + if: steps.release.outputs.release_created + + - run: npm ci + if: steps.release.outputs.release_created + + - run: npm publish + env: + NODE_AUTH_TOKEN: "${{secrets.NPM_AUTH_TOKEN}}" + if: steps.release.outputs.release_created diff --git a/.prettierignore b/.prettierignore index 45a55222f..70e997a6e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,7 +3,8 @@ build coverage docs node_modules -# This can be removed after https://github.com/googleapis/release-please/issues/1802 is fixed +# These may be removed after https://github.com/googleapis/release-please/issues/1802 is fixed +.release-please-manifest.json CHANGELOG.md # TSC output: lib/*.js diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..4d204362b --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "4.0.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..b225a58a7 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "last-release-sha": "cd5ab850a61b040a7e178e22ddd8d905cfd647e9", + "release-type": "node", + "changelog-sections": [ + { "type": "feat", "section": "Features", "hidden": false }, + { "type": "fix", "section": "Bug Fixes", "hidden": false }, + { "type": "enhance", "section": "Enhancements", "hidden": false }, + { "type": "chore", "section": "Miscellaneous", "hidden": false } + ], + "include-component-in-tag": false, + "packages": { + ".": {} + } +}