-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release-please): implement Release-Please for changelog (#17)
This package will also upload npm packages, once configured
- Loading branch information
Showing
8 changed files
with
133 additions
and
10 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
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 | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
command: manifest | ||
release-type: node | ||
package-name: highlightjs-apex | ||
# The logic below handles the npm publication: | ||
- name: Checkout Repository | ||
# these if statements ensure that a publication only occurs when | ||
# a new release is created: | ||
if: ${{ steps.release.outputs.releases_created }} | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
if: ${{ steps.release.outputs.releases_created }} | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Build Packages | ||
if: ${{ steps.release.outputs.releases_created }} | ||
run: | | ||
npm install | ||
npx lerna bootstrap | ||
# Release Please has already incremented versions and published tags, so we just | ||
# need to publish all unpublished versions to NPM here | ||
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package | ||
#- name: Publish to NPM | ||
# if: ${{ steps.release.outputs.releases_created }} | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
# run: npx lerna publish from-package --no-push --no-private --yes |
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
assets | ||
demo | ||
demo | ||
.github | ||
.vscode | ||
node_modules, | ||
.release-please-manifest.json | ||
release-please-config.json |
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,3 @@ | ||
{ | ||
".": "1.2.1" | ||
} |
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,40 @@ | ||
{ | ||
"packages": { | ||
".": { | ||
"package-name": "" | ||
} | ||
}, | ||
"release-type": "node", | ||
"prerelease": false, | ||
"prerelease-type": "", | ||
"initial-version": "1.2.1", | ||
"versioning": "default", | ||
"bump-minor-pre-major": false, | ||
"bump-patch-for-minor-pre-major": false, | ||
"draft": false, | ||
"changelog-path": "CHANGELOG.md", | ||
"include-v-in-tag": true, | ||
"include-component-in-tag": false, | ||
|
||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
"extra-files": [ | ||
{ | ||
"type": "json", | ||
"path": "package.json", | ||
"jsonpath": "$.version" | ||
} | ||
], | ||
"changelog-sections": [ | ||
{ "type": "feat", "section": "Features", "hidden": false }, | ||
{ "type": "fix", "section": "Bug Fixes", "hidden": false }, | ||
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": false }, | ||
{ "type": "revert", "section": "Reverts", "hidden": false }, | ||
{ "type": "refactor", "section": "Code Refactoring", "hidden": false }, | ||
{ "type": "style", "section": "Styles", "hidden": false }, | ||
{ "type": "docs", "section": "Documentation", "hidden": false }, | ||
{ "type": "perf", "section": "Performance Improvements", "hidden": false }, | ||
{ "type": "test", "section": "Tests", "hidden": true }, | ||
{ "type": "build", "section": "Build System", "hidden": false }, | ||
{ "type": "ci", "section": "Continuous Integration", "hidden": false } | ||
] | ||
} |