generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/remove-winston
- Loading branch information
Showing
18 changed files
with
348 additions
and
241 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,17 @@ | ||
name: Enforce Changelog | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
enforce-changelog: | ||
uses: cap-js/.github/.github/workflows/enforce-changelog.yml@main | ||
secrets: inherit | ||
permissions: | ||
pull-requests: write |
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,30 @@ | ||
name: Prepare Next Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
increment: | ||
description: Increment version | ||
required: true | ||
default: patch | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
prepare-next-version: | ||
uses: cap-js/.github/.github/workflows/prepare-next-version.yml@main | ||
secrets: inherit | ||
with: | ||
increment: ${{ github.event.inputs.increment }} |
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 |
---|---|---|
|
@@ -4,53 +4,37 @@ | |
name: Release | ||
|
||
on: | ||
push: | ||
branches: main | ||
|
||
workflow_dispatch: | ||
inputs: | ||
npmtag: | ||
description: 'tag to use on npmjs' | ||
dry-run: | ||
description: Dry run | ||
required: false | ||
default: false | ||
type: boolean | ||
tag: | ||
description: The tag to use during publish, values are latest, next | ||
required: false | ||
default: latest | ||
type: choice | ||
options: | ||
- latest | ||
- next | ||
default: 'latest' | ||
required: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
|
||
publish-npm: | ||
runs-on: ubuntu-latest | ||
environment: npm | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
- name: Run Unit Tests | ||
run: | | ||
npm ci | ||
npm install file:. --no-save --force | ||
npm run prerelease:ci-fix | ||
npm run rollup && npm run rollup:on | ||
npm run test | ||
|
||
- name: get-version | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
- name: Parse changelog | ||
id: parse-changelog | ||
uses: schwma/[email protected] | ||
with: | ||
version: '${{ steps.package-version.outputs.current-version }}' | ||
- name: Create a GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: 'v${{ steps.package-version.outputs.current-version }}' | ||
body: '${{ steps.parse-changelog.outputs.body }}' | ||
- run: npm publish --tag ${{ github.event.inputs.npmtag }} --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
jobs: | ||
release: | ||
uses: cap-js/.github/.github/workflows/release.yml@main | ||
secrets: inherit | ||
with: | ||
dry-run: ${{ github.event.inputs.dry-run || false }} | ||
tag: ${{ github.event.inputs.tag || 'latest'}} |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.