-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cicd): adds new GitHub action workflow to release SSR cookie ser…
…vice
- Loading branch information
1 parent
203b777
commit a0ea87b
Showing
4 changed files
with
1,518 additions
and
3,943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.