Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
navenduraisamy committed Aug 21, 2023
1 parent 89d3baa commit 6eb07fc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
- name: package version
id: package-version
run: echo "version=$(npm pkg get version --location=local | tr -d \")" >> $GITHUB_OUTPUT
run: |
npm pkg get version --location=local | tr -d \"
echo "version=$(npm pkg get version --location=local | tr -d \")" >> $GITHUB_OUTPUT
- name: install angular CLI
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci

- name: build library
run: npm run build we-select
- name: install angular CLI
run: npm install -g @angular/cli

- name: install dependencies
run: npm ci

- name: build we-select
run: ng build we-select

- name: change directory
run: cd ./dist/we-select/

- name: publish to npm registry
run: npm publish
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"name": "we-select",
"version": "2.1.5",
"files": [
"dist/we-select",
"images/"
],
"version": "2.1.11",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down

0 comments on commit 6eb07fc

Please sign in to comment.