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 a0ea87b
Show file tree
Hide file tree
Showing 4 changed files with 1,518 additions and 3,943 deletions.
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 a0ea87b

Please sign in to comment.