-
Notifications
You must be signed in to change notification settings - Fork 36
46 lines (36 loc) · 1.27 KB
/
publish-on-npm-view-engine.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Publish version on npm for Angular view engine compatibility"
on:
workflow_dispatch:
branches:
- "angular8"
jobs:
build-test-deploy:
name: Build, test, bump version and deploy the library on npm
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@master
with:
node-version: "10"
registry-url: "https://registry.npmjs.org"
- uses: actions/checkout@master
- name: "Install dependency"
run: npm ci
- name: "Automated version bump for library"
uses: "phips28/gh-action-bump-version@master"
with:
tag-prefix: ""
env:
PACKAGEJSON_DIR: "./projects/ngx-image-compress"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
target-branch: "angular8"
- name: 'Build'
run: ./node_modules/.bin/ng build
- name: "Ship the README.md with the library build"
run: cp ./README.md ./dist/ngx-image-compress/README.md
- name: "Ship the LICENSE"
run: cp ./LICENSE ./dist/ngx-image-compress/LICENSE
- name: "Publish the library on npm with tag view-engine"
working-directory: ./dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish ngx-image-compress --tag view-engine