Skip to content

Commit ed2fc11

Browse files
committed
feat(cicd): adds new GitHub action workflow to release SSR cookie service
1 parent 203b777 commit ed2fc11

File tree

5 files changed

+1519
-3944
lines changed

5 files changed

+1519
-3944
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node }}
2222
- name: Install dependencies
23-
run: npm ci --force
23+
run: npm i --force
2424
- name: Lint
2525
run: npm run lint
2626
- name: Format check

.github/workflows/npm_publish_ssr.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to NPM
2+
on:
3+
push:
4+
### Publish on new tag release
5+
tags:
6+
- v*
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 16
15+
- name: Install Angular CLI
16+
run: npm install -g @angular/cli @angular/core
17+
- name: Install NPM Dependencies
18+
run: npm ci --force
19+
- name: Build project
20+
run: ng build --configuration production --project=ngx-cookie-service-ssr
21+
- name: Publish to NPM
22+
uses: JS-DevTools/npm-publish@v1
23+
with:
24+
token: ${{ secrets.NPM_TOKEN }}
25+
package: dist/ngx-cookie-service-ssr/package.json
26+
access: public

0 commit comments

Comments
 (0)