Skip to content

Commit

Permalink
feat(cicd): adds new GitHub action workflow to release SSR cookie ser…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
pavankjadda committed Jun 27, 2022
1 parent 203b777 commit ed2fc11
Show file tree
Hide file tree
Showing 5 changed files with 1,519 additions and 3,944 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci --force
run: npm i --force
- name: Lint
run: npm run lint
- name: Format check
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/npm_publish_ssr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to NPM
on:
push:
### Publish on new tag release
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Angular CLI
run: npm install -g @angular/cli @angular/core
- name: Install NPM Dependencies
run: npm ci --force
- name: Build project
run: ng build --configuration production --project=ngx-cookie-service-ssr
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: dist/ngx-cookie-service-ssr/package.json
access: public
Loading

0 comments on commit ed2fc11

Please sign in to comment.