File tree Expand file tree Collapse file tree 2 files changed +82
-0
lines changed
Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build PR
2+
3+ on :
4+ pull_request :
5+ paths-ignore :
6+ - " README.md"
7+ - ' docs/**'
8+ - ' .github/ISSUE_TEMPLATE/**'
9+ - ' .github/PULL_REQUEST_TEMPLATE.md'
10+
11+ jobs :
12+ generate_infos :
13+ uses : fullstack-devops/actions/.github/workflows/generate-build-infos.yml@main
14+ secrets :
15+ token : ${{ secrets.GITHUB_TOKEN }}
16+
17+ build :
18+ runs-on : ubuntu-latest
19+ needs : generate_infos
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v2
23+ - name : Setup node
24+ uses : actions/setup-node@v2
25+ with :
26+ node-version : ' 16.x'
27+ registry-url : ' https://npm.pkg.github.com'
28+
29+ - name : install packages
30+ run : yarn
31+ - name : build applikation
32+ run : yarn run build
Original file line number Diff line number Diff line change 1+ name : Release Package
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ paths-ignore :
8+ - " README.md"
9+ - " docs/**"
10+ - " .github/ISSUE_TEMPLATE/**"
11+ - " .github/PULL_REQUEST_TEMPLATE.md"
12+
13+ jobs :
14+ create_release :
15+ uses : fullstack-devops/actions/.github/workflows/create-release.yml@main
16+ secrets :
17+ token : ${{ secrets.GITHUB_TOKEN }}
18+
19+ build :
20+ runs-on : ubuntu-latest
21+ needs : create_release
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@v2
25+ - name : Setup awesome-ci
26+ uses : fullstack-devops/awesome-ci-action@main
27+ - name : Setup node
28+ uses : actions/setup-node@v2
29+ with :
30+ node-version : " 16.x"
31+ registry-url : " https://npm.pkg.github.com"
32+ scope : " @fullstack-devops"
33+
34+ - name : install packages
35+ run : yarn
36+ - name : build applikation
37+ run : yarn run build
38+
39+ - name : npm publish
40+ working-directory : dist/ng-mat-components
41+ run : |
42+ npm version ${{ needs.create_release.outputs.version }}
43+ npm publish
44+ env :
45+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+
47+ - name : Publish release
48+ run : awesome-ci release publish -releaseid "${{ needs.create_release.outputs.releaseid }}"
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments