-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: swap release process to release-please (#508)
**What is the purpose of this pull request?** To improve the release process by swapping to release-please. Fixes #506 **What changes did you make? (Give an overview)** Removed `cycjimmy/semantic-release-action` and added `googleapis/release-please-action`
- Loading branch information
Showing
6 changed files
with
72 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/v16.12.0/schemas/config.json", | ||
"release-type": "node", | ||
"include-component-in-tag": false, | ||
"changelog-sections": [ | ||
{ "type": "feat", "section": "🌟 Features", "hidden": false }, | ||
{ "type": "fix", "section": "🩹 Fixes", "hidden": false }, | ||
{ "type": "docs", "section": "📚 Documentation", "hidden": false }, | ||
|
||
{ "type": "chore", "section": "🧹 Chores", "hidden": false }, | ||
{ "type": "perf", "section": "🧹 Chores", "hidden": false }, | ||
{ "type": "refactor", "section": "🧹 Chores", "hidden": false }, | ||
{ "type": "test", "section": "🧹 Chores", "hidden": false }, | ||
|
||
{ "type": "build", "section": "🤖 Automation", "hidden": false }, | ||
{ "type": "ci", "section": "🤖 Automation", "hidden": true } | ||
], | ||
"packages": { | ||
".": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ ".": "7.0.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release Please | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
release_please: | ||
name: release-please | ||
runs-on: ubuntu-latest | ||
outputs: | ||
releaseCreated: ${{ steps.release.outputs.release_created }} | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
id: release | ||
with: | ||
config-file: .github/release-please/config.json | ||
manifest-file: .github/release-please/manifest.json | ||
|
||
npm_publish: | ||
name: Publish to npm | ||
runs-on: ubuntu-latest | ||
needs: release_please | ||
if: needs.release_please.outputs.releaseCreated | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm publish --provenance --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters