Skip to content

Commit 5820ec4

Browse files
committed
update publish action
1 parent 16b99b7 commit 5820ec4

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@ name: publish latest
33
on:
44
release:
55
types: [released]
6-
6+
env:
7+
NG_CLI_ANALYTICS: false
78
jobs:
89
publish-npm:
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v2
1213
- uses: actions/setup-node@v1
1314
with:
14-
node-version: 12
15+
node-version: 14
1516
registry-url: https://registry.npmjs.org/
1617
- name: create angular cli project
17-
run: npx @angular/cli@6.2.9 new build --skip-tests --minimal --routing --skip-git --strict false --style scss
18+
run: npx @angular/cli@11 new build --skip-tests --minimal --routing --skip-git --strict false --style scss
19+
- name: set analytics off
20+
working-directory: build
21+
run: npm run ng analytics off -- --global
1822
- name: create angular library
1923
working-directory: build
20-
run: npm run ng -- generate library angular --create-application=false --skip-git --skip-tests --inline-style
24+
run: npm run ng -- generate library angular --interactive false
2125
- name: remove angular library
2226
working-directory: build
2327
run: rm -rf projects/angular

0 commit comments

Comments
 (0)