Skip to content

Commit 61dbdfb

Browse files
committed
test: reusing workflows
1 parent bb3de86 commit 61dbdfb

6 files changed

Lines changed: 5 additions & 284 deletions

File tree

.github/workflows/angular-build-library.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/angular-release-publish-library.yml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,12 @@ on:
1212
options:
1313
- ngx-fetcher-with-etag
1414
- ngx-json-schema-forms
15-
default: 'ngx-fetcher-with-etag'
15+
default: 'ngx-json-schema-forms'
1616

1717
jobs:
18-
verify:
19-
name: 1. Verify Package
20-
uses: ./.github/workflows/angular-verify-package.yml
18+
release-and-publish:
19+
uses: profusion/github-actions/.github/workflows/angular-release-publish-library.yml@main
2120
with:
22-
library_path: 'projects/${{ inputs.library_name }}'
2321
library_name: ${{ inputs.library_name }}
24-
org_scope: '@profusion'
25-
secrets: inherit
26-
27-
build:
28-
name: 2. Build Library
29-
needs: verify
30-
uses: ./.github/workflows/angular-build-library.yml
31-
with:
32-
library_name: ${{ inputs.library_name }}
33-
secrets: inherit
34-
35-
tag:
36-
name: 3. Create Git Tag
37-
needs: [verify, build]
38-
uses: ./.github/workflows/git-tag.yml
39-
with:
40-
version: ${{ needs.verify.outputs.version }}
41-
tag_prefix: ${{ github.event.inputs.library_name }}
42-
secrets: inherit
43-
44-
release:
45-
name: 4. Create GitHub Release
46-
needs: [verify, tag]
47-
uses: ./.github/workflows/github-release.yml
48-
with:
49-
tag: ${{ github.event.inputs.library_name }}-v${{ needs.verify.outputs.version }}
50-
secrets: inherit
51-
52-
publish:
53-
name: 5. Publish to npm
54-
needs: [release]
55-
uses: ./.github/workflows/npm-publish.yml
56-
secrets: inherit
57-
22+
secrets:
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/angular-verify-package.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

.github/workflows/git-tag.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/github-release.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)