Skip to content

Commit 1c41db6

Browse files
authored
Update publish.yml
1 parent 138317e commit 1c41db6

1 file changed

Lines changed: 20 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,25 @@ jobs:
1313
with:
1414
node-version: 12
1515
registry-url: https://registry.npmjs.org/
16-
- run: npx @angular/cli@6.2.9 new build --skip-tests --minimal --routing --skip-git
17-
- run: cd build
18-
- run: npm run ng -- generate library angular --create-application=false --skip-git --skip-tests --inline-style
19-
- run: rm -rf projects/angular
20-
- run: git clone https://github.com/themost-framework/angular.git projects/angular
21-
- run: cd projects/angular
22-
- run: npm ci
23-
- run: cd ../..
24-
- run: npm run ng build angular
25-
- run: cd projects/angular/dist
26-
- run: npm publish --access=public
16+
- name: create angular cli project
17+
run: npx @angular/cli@6.2.9 new build --skip-tests --minimal --routing --skip-git
18+
- name: create angular library
19+
working-directory: build
20+
run: npm run ng -- generate library angular --create-application=false --skip-git --skip-tests --inline-style
21+
- name: remove angular library
22+
working-directory: build
23+
run: rm -rf projects/angular
24+
- name: clone repository
25+
working-directory: build
26+
run: git clone https://github.com/themost-framework/angular.git projects/angular
27+
- name: install dependencies
28+
working-directory: build/projects/angular
29+
run: npm ci
30+
- name: build library
31+
working-directory: build
32+
run: npm run ng build angular
33+
- name: publish library
34+
working-directory: build/projects/angular/dist
35+
run: npm publish --access=public
2736
env:
2837
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)